public function getRelationConstraints($relation) { return array_key_exists($relation, $this->allRelations) ? $this->allRelations[$relation] : []; }