[FLOW3-general] Extending Entiy with Aspect

Dominique Feyer dfeyer at ttree.ch
Wed Sep 26 09:45:55 CEST 2012


I try to create an aspect based on the persistenceMagicAspect to add 
some logic and one property in my models, here is the code 
http://pastebin.com/83dCdWwY it work, the interface is added, the 
property correctly wetted, but the field medialib_owner is not in the 
database, nor doctrine:update either doctrine:migrate work.

I need this feature to be sure that the field medialib_owner is 
correctly setted for private entity. I work on a plateform with mutli 
domain support. Each client use their own domain, and some Entity must 
have a relation with the corresponding domain. As the creation of those 
object can occur in different place of the application i need to have a 
central way to keep the data consistend.

What's wrong ?

Thanks for your help

Dominique Feyer



More information about the FLOW3-general mailing list