doctrine behaviors , if i did it like this , would be correct ??

Posted by tawfekov on Stack Overflow See other posts from Stack Overflow or by tawfekov
Published on 2011-02-28T21:06:26Z Indexed on 2011/03/03 15:25 UTC
Read the original article Hit count: 302

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

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about doctrine