From zeta-users-return-22-apmail-incubator-zeta-users-archive=incubator.apache.org@incubator.apache.org Mon Nov 01 14:34:46 2010 Return-Path: Delivered-To: apmail-incubator-zeta-users-archive@minotaur.apache.org Received: (qmail 4659 invoked from network); 1 Nov 2010 14:34:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 14:34:46 -0000 Received: (qmail 77475 invoked by uid 500); 1 Nov 2010 14:35:17 -0000 Delivered-To: apmail-incubator-zeta-users-archive@incubator.apache.org Received: (qmail 77421 invoked by uid 500); 1 Nov 2010 14:35:15 -0000 Mailing-List: contact zeta-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zeta-users@incubator.apache.org Delivered-To: mailing list zeta-users@incubator.apache.org Received: (qmail 77413 invoked by uid 99); 1 Nov 2010 14:35:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 14:35:14 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.83.47] (HELO mail-gw0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 14:35:08 +0000 Received: by gwaa11 with SMTP id a11so3346850gwa.6 for ; Mon, 01 Nov 2010 07:34:47 -0700 (PDT) Received: by 10.42.175.199 with SMTP id bb7mr6230290icb.207.1288622087518; Mon, 01 Nov 2010 07:34:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.202.195 with HTTP; Mon, 1 Nov 2010 07:34:26 -0700 (PDT) From: =?UTF-8?Q?Vjeran_Vlahovi=C4=87?= Date: Mon, 1 Nov 2010 15:34:26 +0100 Message-ID: To: zeta-users@incubator.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8130c6ba770493feb56f Subject: [zeta-users] createFindQueryWithRelations and limit --90e6ba6e8130c6ba770493feb56f Content-Type: text/plain; charset=UTF-8 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 --90e6ba6e8130c6ba770493feb56f--