php - Limiting the number of objects an object can own in Laravel 5 -
i'm trying figure out if there way limit number of objects object can own in laravel 5.
for instance have organization has many users, plan on limits number of users can have 5, there built in function allow organizations has many users , limit number of users 5?
i not sure possible looking @ relationship types logically, think not possible.
for example, have one one
, one many
, , many many
relationship types. if possible, wouldn't have magic method hasmaximum5
or effect ?
ofcourse, possible in many ways using application logic not eloquent orm afraid. not sure if possible in other orms doctrine or activerecord.
Comments
Post a Comment