i tried to implement this into my bundles but i got problems with adding getter and setter methods to access the stored Attribute objects (or namely their values)
(now with only one attribute for a definition at ones)
what i did was a get value from attribute object for a given definition (using a definition attribute as key)
and setting a value for a given definition
the problem now as that i don't want to store the definition objects into the ORM (because they are static)
because i use Schema, i can do "get definition from Schema" but i still have the problem to get the schema object even, if i have the class name (because my entity doesn't have access to the Doctrine entity manager)
such methods might be added to AttributedEntityTrait
i tried to implement this into my bundles but i got problems with adding getter and setter methods to access the stored Attribute objects (or namely their values)
(now with only one attribute for a definition at ones)
what i did was a get value from attribute object for a given definition (using a definition attribute as key)
and setting a value for a given definition
the problem now as that i don't want to store the definition objects into the ORM (because they are static)
because i use Schema, i can do "get definition from Schema" but i still have the problem to get the schema object even, if i have the class name (because my entity doesn't have access to the Doctrine entity manager)
such methods might be added to AttributedEntityTrait