NYCPHP Meetup

NYPHP.org

[nycphp-talk] Help with a CakePHP View

Daniel Convissor danielc at analysisandsolutions.com
Thu Apr 30 16:17:56 EDT 2009


On Thu, Apr 30, 2009 at 03:13:40PM -0400, Randal Rust wrote:
> 
> Yeah, already did that too. I even modified the *broken* record to see
> if I could get it to work. No luck.

But what's the difference between the two types of records?


> > A possibility is that the query is doing an (inner) JOIN rather than a
> > (outer) LEFT JOIN and there's no matching record in the joined table?
> 
> That is what I thought as well, but I haven't been able to find any 
> such issue.

Until you see the actual SQL, you can't really say that.


> > Have you put a debug statement inside the framework at the point just
> > before the query is actually sent to the database
> 
> That's what I need, but I've had a heck of a time figuring out just
> where that is.

grep -r mysqli_query .

Of course, adjust "mysqli_query" as needed for your given context.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list