Re: Strange contain/find issue

2009-08-19 Thread delocalizer
I experienced something similar a while ago and logged this - https://trac.cakephp.org/ticket/6268 Nate's reply was (quite correctly) that I should write a test case to prove/disprove. 4 months later & I still haven't done it :( My lazy solution: refactor my code until it went away! (No excuse rea

Re: Strange contain/find issue

2009-08-18 Thread MonkeyGirl
I believe this may be the same issue I'm experiencing. After a bit of investigation, I've found out the issue is that specifying "contain" would appear to affect things in subsequent queries. For example, say I have Cart hasMany CartedProduct belongsTo Product belongsTo Brand. Product also belo

Re: Strange contain/find issue

2009-08-13 Thread WebbedIT
Further update: I am getting to the bottom of this, but could still do with a pointer or two. In my AppController I have a __AuthExtra() method which requests extra data to be added into the session. I am calling this on my User model but I am using contain and I'm containing the Person model as

Re: Strange contain/find issue

2009-08-13 Thread WebbedIT
Hi Martin, I would say that was 3 questions, but who's counting :o) > What does the sql output say? && Is the missing data being queried at all? Data is not being queried > What happens if you use recursive instead of containable? I have not tried this but from adding echoes into containable

Re: Strange contain/find issue

2009-08-13 Thread Martin Westin
Two quick questions / checks. What does the sql output say? Is the missing data being queried at all? What happens if you use recursive instead of containable? /Martin On Aug 13, 10:35 am, WebbedIT wrote: > I have been trying to debug an issue I am facing for over 3 hours and > was wondering

Strange contain/find issue

2009-08-13 Thread WebbedIT
I have been trying to debug an issue I am facing for over 3 hours and was wondering if someone could give me some pointers. I have a person.php model which has the following hasMany associations var $hasMany = array( 'OnlineAddress' => array( 'foreignKey'=>'parent_id', 'conditions'=>ar