# Can't patchEntity assocciated entity

**URL:** <https://discourse.cakephp.org/t/cant-patchentity-assocciated-entity/7248>\
**Category:** Need Help\
**Created:** [February 8, 2020, 11:10am UTC](https://discourse.cakephp.org/t/cant-patchentity-assocciated-entity/7248 "2020-02-08T11:10:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![general2000vn](https://avatars.discourse-cdn.com/v4/letter/g/a87d85/32.png) [@general2000vn](https://discourse.cakephp.org/u/general2000vn)\
**Post date:** [February 12, 2020, 5:02am UTC](https://discourse.cakephp.org/t/cant-patchentity-assocciated-entity/7248/8 "2020-02-12T05:02:08Z")

</div>

I have a Register page that allow parents to register their child to courses.

The page contents:

- Logging in data: new user data (Users table)
- Parents data: The 2 parents (Parents table)
- Pupil data: The registering child (Pupils table), only some data of the kid in here, other data in Kids table
- Siblings data: other kids of the same parents (Kids table), the pupil also in this list.
- Course ID : the course that Pupil enroll to (Courses table)
- Education histories: of the pupil (EduHistories table)

Please advice me the better approach for this.

- Should I patch and save them all in UsersController-\>register() action?
- If splitting into many actions for each controller, how can I make them work together as 1 registering page for user GUI ?

Thank you very much for your advice.

---

_[View the full topic](https://discourse.cakephp.org/t/cant-patchentity-assocciated-entity/7248)._
