doctrine behaviors , if i did it like this , would be correct ??
- by tawfekov
Hi ,
I am doing a web application in ZF + Doctrine 1.2.3 but i had an old database ,
it had pretty good structure so i think i can reverse engineer it with doctrine commad
./dcotrine generate-models-db ,
its amazing but i stopped when i wanted to use some doctrine behaviors like : searchable as an example ,
my question :
if i went to my model and added these two lines :
$this->actAs('Searchable', array(
'fields' => array('title', 'content')
)
);
i am not sure if that enough and would work as expected ,
if you had any more tips about creating other behaviors like (versionable , i18n , sluggable or soft delete ) manually or reverse engineer it with doctrine behaviors , could you please list them