/** * @param SchoolInterface $entity * @param array $data * @return SchoolInterface * * @see AbstractFixture::populateEntity() */ protected function populateEntity($entity, array $data) { // `school_id`,`template_prefix`,`title`,`ilios_administrator_email`,`deleted`,`change_alert_recipients` $entity->setId($data[0]); $entity->setTemplatePrefix($data[1]); $entity->setTitle($data[2]); $entity->setIliosAdministratorEmail($data[3]); $entity->setDeleted((bool) $data[4]); $entity->setChangeAlertRecipients($data[5]); return $entity; }
/** * {@inheritdoc} */ public function deleteSchool(SchoolInterface $school) { $school->setDeleted(true); $this->updateSchool($school); }