Can you show some code? Show the model associations from each model and the 
code where you are trying to do the look up.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 14 May 2012, at 17:53:31, Andrés Manikis wrote:

> Hello. I'm new in Cake and I'm having a problem with a model relationship.
> 
> I have a model named Person and another one named Producer. Producer belongs 
> to Person.
> 
> When I try to access the person from the producer model I can't get anything.
> I mean, if inside Producer.php I do $this->Person->name i don't get anything. 
> Also, if I call debug($this->Person) I get the object description and the id 
> field is false.
> 
> I don't know what i'm doing wrong. An interesting fact is that in the 
> Producers view I get all the Person fields correctly. But I want to access 
> those fields in the model!
> 
> I would appreciate any help in this as I've been trying to fix it for almost 
> two hours now.
> 
> Thank you very much.
> Andres
> 
> -- 
> 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
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to