Got it! Thanks a lot for your prompt responses and help today, Miles.
-Matt
On Jul 12, 7:56 pm, Miles J wrote:
> I suggest you dont use $recursive and use Containable behavior
> instead.http://book.cakephp.org/view/474/Containable
>
> Your query could then become:
>
> $this->Post->find('all',
I suggest you dont use $recursive and use Containable behavior
instead. http://book.cakephp.org/view/474/Containable
Your query could then become:
$this->Post->find('all', array('contain' => array('Photo' => array
('Equipment';
--~--~-~--~~~---~--~~
You receiv
To be honest I am not sure the difference between recursive and
containable. I am using a simple: $this->Post->findAll() to get the
data. Does that help?
On Jul 12, 5:13 pm, Miles J wrote:
> Can we see your query you are using? And are you using recursive or
> containable.
--~--~-~--~
Can we see your query you are using? And are you using recursive or
containable.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsub
Hello all,
I am new to cakephp and I am having trouble setting up the following
relationships for my photo blog.
Here are the relationships
Post: hasMany: array('Photo')
Photo: belongsTo: array('Post', 'Equipment')
Equipment: hasMany: array('Photo')
Essentially a post can have many pictures