سؤال

If I have a Conversation entity that can have many messages (another entity), do I set the relationship on the conversation or message or both?

هل كانت مفيدة؟

المحلول

Once you set relationship on Conversation entity, it will automatically create relationship on the other entity. You need to make sure to name them properly as you might want to know what Conversation a Message belongs to and what Messages a Conversation has.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top