/** * Gets related entities. * * @param String $alias * @param null $arguments * * @return ResultSet */ public function getRelated($alias, $arguments = null) { $relationship = $this->getRelationship($alias); if (($relationship === false || $relationship instanceof CustomRelationship) && method_exists($this, "get" . ucfirst($alias))) { return call_user_func(array($this, "get" . ucfirst($alias))); } return parent::getRelated($alias, $arguments); }