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