You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-users@incubator.apache.org by Vjeran Vlahović <vj...@netgen.hr> on 2010/11/01 14:34:26 UTC

[zeta-users] createFindQueryWithRelations and limit

Hi all,
I am new in ezc and working on my first app. I tried to use
createFindQueryWithRelations in PersistentObject but was unable to find the
way how to pass the limit and offset value to the query object. I ended up
changing PersistentObject/src/queries/find_with_relations_query.php by
adding the case 'limit': in line 99.

After that, I was able to do something like this:

$q=$session->createFindQueryWithRelations('Document',$prefetchRelations);
$documents = $session->find( $q->limit($limit,$offset) );

Is this a bug or am I missing something?

Thanks!
Vjeran