You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to utilize meta for a relationship with another table? For example, I have a "products" table and metadata where the "key" is "mistake" and the value is "1". So, if I want to retrieve the meta "mistake", then based on the key with "1", I want to retrieve data from the "mistakes" table where mistakes.id=1. Something similar to what Laravel has for hasOne()... Thank you.
The text was updated successfully, but these errors were encountered:
matuskm
changed the title
Using Metadata for Table Relationships in Laravel?
Using Metadata for Table Relationships in Laravel
Feb 5, 2024
By all means. For something high volume, you may find native columns with proper indexing a bit more performant, but for occasional relationships, tables that are difficult to modify or something particularly polymorphic, this approach can work
Is it possible to utilize meta for a relationship with another table? For example, I have a "products" table and metadata where the "key" is "mistake" and the value is "1". So, if I want to retrieve the meta "mistake", then based on the key with "1", I want to retrieve data from the "mistakes" table where mistakes.id=1. Something similar to what Laravel has for hasOne()... Thank you.
The text was updated successfully, but these errors were encountered: