@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 <maerl...@gmail.com> wrote:
> Doctrine's Versionable behavior has no dql update listener. Retrieve
> the BankUser object first, update and save that and it'll work.
>
> On Thu, Jun 9, 2011 at 06:47, Raju <yadavrajesh25j...@gmail.com> wrote:
> > hi ,
>
> > versionable not working on this query
>
> >  public function updateUserBankBranch($userid,$bank_branch_id){
> >     $q = $this->createQuery()
> >              ->update('BankUser b')
> >              ->set('b.bank_branch_id', $bank_branch_id)
> >              ->where("b.user_id = '$userid'")
> >              ->execute();
> >    return true;
> >  }
>
> > while versioning working on symfony generated module can someone help
> > me on this
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to