public function setFromDatabaseValues(array $result) { foreach ($result as $item) { $this->add(new Entity\Relations($item)); } }