/** * Gets all projects associated with the cost centre * * @return ArrayCollection Returns collection of the ProjectEntity objects */ public function getProjects() { return ProjectEntity::result(self::RESULT_ENTITY_COLLECTION)->findByCcId($this->ccId); }