Thursday, April 17, 2014

Re: Bake and model associations

OK - just realised what the problem was. I restructured a legacy database in
accordance with Cake conventions, but when I added the "child" columns, I
simply appended "_id" to the parent table name, instead of "singularising"
it, e.g. using "part_id" to reference parts.id. All now fine!



--
View this message in context: http://cakephp.1045679.n5.nabble.com/Bake-and-model-associations-tp5717978p5717979.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: