$entity->getId(), 'key' => $entity->getKey(), 'value' => $entity->getValue(), ]; } public function toBasicEntity(array $array) { $entity = new \Szurubooru\Entities\GlobalParam($array['id']); $entity->setKey($array['key']); $entity->setValue($array['value']); return $entity; } }