public function defaultRelations(array $requested = []): array
    {
        $requested = $this->normalizeRelations($requested);
        $relations = $this->applyQueryConstraints($this->normalizeRelations($this->load));
        $nestedRelations = $this->nestedRelations($relations, array_merge($relations, $requested), 'defaultRelations');

        return array_merge($relations, $nestedRelations);
    }
public function defaultRelations(array $requested = []): array
    {
        $requested = $this->normalizeRelations($requested);
        $relations = $this->applyQueryConstraints($this->normalizeRelations($this->load));
        $nestedRelations = $this->nestedRelations($relations, array_merge($relations, $requested), 'defaultRelations');

        return array_merge($relations, $nestedRelations);
    }
public function defaultRelations ( array $ requested = [ ] ) : array { $ requested = $ this -> normalizeRelations ( $ requested ) ; $ relations = $ this -> applyQueryConstraints ( $ this -> normalizeRelations ( $ this -> load ) ) ; $ nestedRelations = $ this -> nestedRelations ( $ relations , array_merge ( $ relations , $ requested ) , 'defaultRelations' ) ; return array_merge ( $ relations , $ nestedRelations ) ; }
Get a list of default relations including nested relations.

@param  array $requested
@return array
Get a list of default relations including nested relations .