Re: Model Association 'limit' not working

2007-12-08 Thread zonium
Did you try turning on debug mode and see how the SQL statement looks like? Try running the sql statement manually and you should be able to track where the problem is. Zonium On Dec 7, 5:30 pm, sanderken <[EMAIL PROTECTED]> wrote: > People looking for the answer to " defining limit row in oracl

Re: Model Association 'limit' not working

2007-12-07 Thread sanderken
People looking for the answer to " defining limit row in oracle " : in the model , use the 'conditions' => ' WHERE ROWNUM <= 3 ' option. Limit is the implementation in mySQL. Hope this helps someone... On 8 dec, 01:53, sanderken <[EMAIL PROTECTED]> wrote: > Maybe I should mention I'm us

Re: Model Association 'limit' not working

2007-12-07 Thread sanderken
Maybe I should mention I'm using oracle for DBMS. On 7 dec, 21:54, sanderken <[EMAIL PROTECTED]> wrote: > Hey, > > I defined a "user" (named Gebruiker in my native language ) model > where when I call a $this->find() , needs to retrieve only a limited > amount of related information. > > When I a

Model Association 'limit' not working

2007-12-07 Thread sanderken
Hey, I defined a "user" (named Gebruiker in my native language ) model where when I call a $this->find() , needs to retrieve only a limited amount of related information. When I add the 'limit' => '10' to the association info, it doesn't work. For example: I call $gebruiker = $this->find(