EAV type of data


I want to store data similar to an eav model.

I have table attributes_entities

entitie_id attribute_id value_id

And then I have for eaxample attribute_varchars, attribute_numbers where I will store the values. The attribute_type_id is set in the attribute model. Alternatively I can ass a column to the attributes_entities table which holds the model.

My question is then how I can receive the values and store the values in the correct table, based on whch datatype it is?


Hi Thomas,

there is no built-in support of EAV model in CakePHP, but there are few plugins out there implementing it, for instance: