[Dbix-class] adding conditions

Octavian Rasnita orasnita at gmail.com
Tue Jan 9 18:41:41 GMT 2007


From: "Oliver Gorwits" <oliver.gorwits at oucs.ox.ac.uk>

>> How can I add these conditions after defining $rs?
> 
> $rs = $rs->search({id_user => $id_user});

Thank you. This way it works well. I have tried:

$rs->{cond}->{id_user} = $id_user;

And it works, but only when some conditions are previously defined.

Octavian




More information about the Dbix-class mailing list