If I understand correctly you want to linked one client to one shop location (or maybe many location).
First way is one to Many. (client belongs to location and location hasMany clients) You need to create table with you clients and put new column like location_id
. Then simply set one of many location to client (in edit or use postButton with location_id and client_id).
Secondly way is many to many. That means many clients belongs to many locations and many locations belongs to many clients. Like tags in articles. You need to create three tables. One with clients, One with locations and One to connect it together.
In this way Clients Table and Location Table dont't have any additional columns to direct to themselfs (like location_id or client_id). You need to make third table with name clients_locations
and add colmuns with ID of Client Table and Location Table. Simple example:
+--------+-------------+-----------+
| id. | location_id | client_id |
+--------+-------------+-----------+
| 1 | 3 | 10 |
+--------+-------------+-----------+
| 2 | 4 | 3 |
+--------+-------------+-----------+
| 3 | 7 | 9 |
+--------+-------------+-----------+
| 4 | 4 | 40 |
+--------+-------------+-----------+
In Cakephp its name as BelongsToMany.