I have a postal_address
model that includes: street, zipcode, city, etc. I then have multiple unrelated models like Organization or User that have the postal_address
as one of their attributes. The using-models simply refer to the postal_address
as belongsTo
, specifying the reverse is not clear to me, i.e. inside of the postal_address
do I indicate anything in terms of models that refer to it?
Depending on the context, updating the address may affect the Organization, other times the User. There are many more models that could use the postal_address
than the two I listed, in the event one suggests to duplicate the address-model per use-case.
Aucun commentaire:
Enregistrer un commentaire