NYCPHP Meetup

NYPHP.org

[nycphp-talk] Help with a CakePHP View

Randal Rust randalrust at gmail.com
Fri May 1 08:51:13 EDT 2009


On Thu, Apr 30, 2009 at 4:17 PM, Daniel Convissor
<danielc at analysisandsolutions.com> wrote:

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

It ended up, for now at least, not having anything to do with the SQL
queries. After working from the end of the process back to the very
beginning, I found that the error was happening in the model file for
the District. In that file, there is a $hasMany variable that looked
like this:

var $hasMany = array('User'=>array(),'book=>array());//I removed all
of the values from the arrays

I changed it to:

var $hasMany = array('user'=>array(),'book=>array());

And it started working.

It still does not explain why some records were displayed and others
weren't, but at least it's working now. So I know when something
similar happens again, it's likely a case sensitivity issue.

-- 
Randal Rust
R.Squared Communications
www.r2communications.com
614-370-0036



More information about the talk mailing list