Thank you,

but I think it s not possible for the generated getter methods.
I think they are just "alias" to the function
_get($fieldName, $load = true);


On Dec 2, 3:30 am, "rooster (Russ)" <russmon...@gmail.com> wrote:
> Antoine S. wrote:
> > I used a lot with propel the possibilty to add a criteria to a
> > generated function.
>
> > Example : a product has categories, it will generate :
>
> > public function getProductCategories($criteria = null, $con = null)
> > {
> > }
>
> > and then I could easily refined with a criteria.
>
> > But with doctrine it seems not possible to do such things ?
>
> In Doctrine you can pass around a query object in much the same way.
>
> $q = new Doctrine::createQuery()->from("myTable t");
>
> public function getProductCategories($q = null)
> {
>
> }

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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