Monday, April 18, 2016

Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

First off you don't need to cotain users 3 times, Users.Addresses.Countries includes all 3 tables already.

Secondly, if the address has the id, it should automatically detect that it is being edited, if the id is missing it will add the address.

--
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: