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