On Fri, Nov 26, 2010 at 1:53 AM, Bobby <[email protected]> wrote: > Hi, > > I have developed my first application with CakePHP. Everything is > working find on my development server. I deployed this morning and > came across a problem. Not sure if anyone has had the same problem > before and knows how to fix it. > > I have a find method that pulls a list of clients and their users from > the database. On my dev server I get the following: > > > [0] => Array > ( > [Client] => Array > ( > [id] => 1 > [Name] => Jump Monkey > [IsActive] => 1 > ) > > [User] => Array > ( > [id] => 2 > [Name] => Graeme Oswald > [Email] => [email protected] > [Password] => > 624f7b8d57e90ab768ede740f3a30b5989ec1900 > [IsActive] => 1 > [created] => > [modified] => 2010-11-26 01:08:12 > [client_id] => 1 > ) > ) > > On my ISP server I get this. (missing the User model) > > > [0] => Array > ( > [Client] => Array > ( > [id] => 1 > [Name] => Jump Monkey > [IsActive] => 1 > ) > ) > > > Anyone seen this problem before before I go scratching around in php > settings?
Difficult to say without seeing the find() call itself. Are you using Containable, or relying on the recursive option? Are you certain that the User record exists? Have you set debug to 2 and examined the SQL (or any warnings)? Also, delete everything in the app/tmp/cache/models/ dir. Aside from that, it's good practice not to post private information online like that. It's debatable whether including a hashed password is a problem, but you certainly ought not to publish users' email addresses. 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
