Friday, March 25, 2016

Re: [Cakephp 3.2.5] Cannot match provided foreignKey

In addition to the other reply, i recommend that you use the bake utility to bake your models so that all of the needed files are created along with the correct syntax.


from a dos command prompt, cd to your application folder that contains your bin and src folders and issue the following commands:
bin\cake bake model Users
bin\cake bake model Articles

in addition, you may want to bake your controllers and templates but make sure you don't overwrite any code that you have already written there...
With your tables created correctly and the code baked everything should work as expected.

regards,
--Kevin

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow 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.
For more options, visit https://groups.google.com/d/optout.

No comments: