fixes #4210
Merge pull request #5502 from dotCMS/issue-4210-one-to-many-rel-restriction-not-working

fixes #4210