I have a few models, all with appropriately named model files.
$this->Property->PropertyImage->Image->read();
All linked accordingly. Problem is, the recursive model is not able to attach to all the relationships and for some reason is returning AppModel
data type when i do a var_dump
on $this->PropertyImage
. When i do a var_dump($this->Property);
i get data type: Property
.
What is going on here, what would cause this to happen? Also how can I fix this problem?