Re: [symfony-users] Re: Versionable behavior not working for Doctrine query

2011-06-09 Thread Gábor Fási
I was thinking more along the lines of $a = BankUserTable::getInstance()->findOneByUserId($user_id); $a->bank_branch_id = $bank_branch_id; $a->save(); As far as I understand doctrine internals, you need to create a version of versionable that extends Doctrine_Record_Listener, and implement the pr

[symfony-users] Re: Versionable behavior not working for Doctrine query

2011-06-09 Thread RYadav
@Gabor, yes you are right if i wrote like this $a =new Bank; $a->set('bank_name', "'yadav'") ->save(); its insert a new record and make its version also, how can i make a versional listener for dql. On Jun 9, 2:53 pm, Gábor Fási wrote: > Doctrine's Versionable behavior has no dql update list

[symfony-users] Re: Versionable behavior not working for Doctrine query

2011-06-09 Thread Illya Klymov
Hi! I'm not sure if it really relates to Symfony, but as far as I understand you are speaking about Gedmo Versionable extensions for Doctrine2. In that case it will never work here - DQL queries do not use Doctrine UOW, so there is not chance to catch them, and implement versionable -- If you