public function getAllRelations()
{
if (count($this->allRelations) === 0) {
$allRelations = array_merge(array_keys($this->relations), array_keys($this->localRelatedFilters));
foreach ($allRelations as $related) {
$this->allRelations[$related] = array_merge($this->getLocalRelation($related), $this->getRelatedFilterInput($related));
}
}
return $this->allRelations;
}