Expand Relations by dot

added new parsing logic for query attribute
so if user wants to expand the fields of a
relations ( many 2 one, one 2 one , and so)
it should add . to the name of the relation like
?expand=location,location.venue
that will expand the location venue.

Change-Id: I6c50d10e793f017da9146dbce5c5e86a631d9224
This commit is contained in:
smarcet
2020-01-31 11:32:44 -03:00
parent 05629ad60d
commit e5b161a997
37 changed files with 3274 additions and 324 deletions

View File

@@ -53,4 +53,14 @@ final class DoctrineGroupRepository
{
return Group::class;
}
/**
* @param string $slug
* @return Group|null
*/
public function getBySlug(string $slug): ?Group
{
return $this->findOneBy(['code'=>trim($slug)]);
}
}