Tuesday, September 11, 2012

isOwnedBy trouble belongsTo more than 1 model

Hi

I'm having trouble with the isOwnedBy when some I have model that belongsTo more than 1 model.

Example:

My User has a Post. This is has a Comment.
So by the logical sense, the Comment belongsTo Post, but the Comment belongTo User too.

And the function  isOwnedBy is not working with the 3 Ids needed in this case.
Thanks in advance.

--
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 unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate