Equivalent should be: $this->Person-find('first', array( 'conditions' => array('Person.id' => $id), 'restrict' => array('PersonType') ));
Take a look at the new CakePHP find syntax to understand it better. -MI --------------------------------------------------------------------------- CakeFest: December, 2008 - Buenos Aires, Argentina - http://es.cakefest.org Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar twitter: http://twitter.com/mgiglesias -----Mensaje original----- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de rob5408 Enviado el: Lunes, 31 de Marzo de 2008 04:08 p.m. Para: Cake PHP Asunto: Bindable syntax, old vs new I'm apparently not understanding the the proper shortform Bindable syntax, isn't this... $this->Person->restrict('PersonType'); $this->Person->find('Person.id = ' . $id); ...equivalent to this... $this->Person->find('Person.id = ' . $id, array('restrict' => array('PersonType'))); ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---