/** * Loads all properties to entity */ public function loadProperties() { $this->_properties = new ArrayCollection(array()); foreach (CostCentrePropertyEntity::findByCcId($this->ccId) as $item) { $this->_properties[$item->name] = $item; } }
/** * Loads all properties to entity */ public function loadProperties() { $this->_properties = new ArrayCollection(array()); foreach (CostCentrePropertyEntity::findByCcId($this->ccId) as $item) { $this->_properties[$item->name] = $item; } }