Added hasManyEntries and related relation logic
Merge branch 'refs/heads/2.3/develop' into 3.0/develop