Wednesday, February 23, 2011

Re: Containable, paginate, Trying to get property of non-object

On Feb 24, 2011, at 00:39, Ryan Schmidt wrote:

> I do in fact have a hasMany relationship defined for Place:
>
> class Place extends AppModel {
> var $hasMany = array(
> 'Thing' => array(
> 'className' => 'Thing',
> 'foreignKey' => 'place_id',
> 'dependent' => false,
> ),
> ...
> );
> ...
> }

Merely changing this "place_id" to "current_place_id" does not change the notice, and it is still the "CurrentPlace.name" entry in the "contain" array that is eliciting it, which makes me think the definition of the hasMany relationship in the Place model isn't relevant to the problem.


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate