A bit more background. I had this same issue a couple days ago and the only way i was able to solve it was to basically rename the model. At that time it was a model i had just created so it was no big deal to rename, this time though I'm using this all over the place. Even more frustrating this model worked on Friday when i went home and no one else was working on it. No database changes... im sure something changed somewhere but for the life of me i can't find it (nor can SVN)
On Feb 16, 9:19 am, JoshSchramm <[email protected]> wrote: > Hey guys. > > Ive been fighting with a problem for a couple days now and it popped > back up this morning. > > I have a class hotel_group_member that is a model. Some relevant info > > filename: hotel_group_member.php > classname: HotelGroupMember > table: hotel_group_members > > For some reason it isnt getting initialized. I get this error on my > landing page for the controller - Undefined property: > HotelGroupMember::$table [CORE/cake/libs/model/model.php, line 639] > > I hunted it down a bit and in class_registry this line gets execute - $ > {$class} =& new $class($settings); > > but it never calls __construct in model.php like every other model > does. It just kinda dies there and skips the constructor. > > I dont have the constructor overridden in my class so it should be > passing through to AppModel > > Any thoughts? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
