Monday, February 25, 2013

Re: Model "Subject" not found

Hi Thiago,


Maybe a search for "Subject" on files in your app folder?

thanks for your answer. Of course, my initial reaction was: I did, but I don't find anything! And I did a grep Subject * -R. But I looked over the results once more.
Turns out, I did have a field called subject_id. The funny thing is: symfony does not care about the _id part, but I guess CakePHP thinks, because of the _id, that this must be a reference to another table, which does, indeed, not exist.

So, I changed the fieldname - now, the views are generated by bake without any problems.

Thanks again for pointing me in the right direction!

regards,

Paul

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: