public function delete($state) { if ($state instanceof State) { $state->deleted = true; $this->save($state); } else { parent::delete($state); } }
/** * Platforms constructor. */ public function __construct(EntityManager $em) { parent::__construct($em, $em->getRepository(Platform::class)); }
public function __construct(EntityManager $em) { parent::__construct($em, $em->getRepository(GamePicture::class)); }