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')));
?
print_r-ing the first one I get...
Array
(
[Person] => Array
(
[id] => 3459
[birthdate] => 1977-12-05
[firstname] => Jerome
[lastname] => Reeser
[country_id] => 27
[person_type_id] => 5
)
[PersonType] => Array
(
[id] => 5
[name] => Trainer
)
)
...and for the second...
Notice (8): Undefined offset: 0 [CORE/cake/libs/model/datasources/
dbo_source.php, line 1465]
There are more associations normally so I know the first one is
working properly.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---