It's generateTreeList(). Also, ensure that Author has $actsAs = array('Tree')

On Tue, Jun 9, 2009 at 5:39 AM, engfaruque<[email protected]> wrote:
>
>
>
>
> $authors = $this->Book->Author->generateList();
>
> For the above code following error occur
>
> 1064: You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server version for the right syntax to use near
> 'generateList' at line 1
>
>
> How i solve it. I am new in cake php
> --
> View this message in context: 
> http://www.nabble.com/Problem-in-generateList%28%29--tp23939577p23939577.html
> Sent from the CakePHP mailing list archive at Nabble.com.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to