Hi,
When I do $data = $this->Post->find("post.id=$id","id, title", null,
1);
I am looking to get the associated Account back in the returned array.
Instead I am getting the account columns back in the same array as the
post columns.
What I'm calling:
$this->Post->find("post.id=$id",'id, title', null, 1);
What I'm getting:
array( POST => array( [id] => 23 [title] => Blog 1 [account_name] =>
Tester [account_author] => John Doe ))
But I want the account info put in a different index under Account
like below instead of being mixed with the Post array
array( Post => array([id] => 23 [title] => Blog 1 )
Account => array( [id] => 1 [account_name] => Tester
[account_author] => John Doe )
)
I want to be able to do $data['Account']['account_author']
But instead I have to do $data['id']['account_author']
It works correctly in Mysql but not in Postgresql. Is this right?
Can someone who is using Postgresql help me resolve this issue? I
would really appreciate the help... Thanks.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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