/** * @param EntityManager $entityManager * @param HydratorInterface $hydrator */ public function __construct(EntityManager $entityManager = null) { if ($entityManager) { $this->setEntityManager($entityManager); } parent::__construct(); }
/** * Creates a SettingsEntityHydrator */ public function __construct() { parent::__construct(); $this->addFilter('ignoreInternalProperties', function ($property) { return "_" != $property[0]; }); }
public function __construct($repOrganization, $repOrganizationName, $repOrganizationImage) { parent::__construct(); $this->repOrganization = $repOrganization; $this->repOrganizationName = $repOrganizationName; $this->repOrganizationImage = $repOrganizationImage; //$httpload = new HttploadStrategy($repOrganizationImage); //$organizationName = new OrganizationNameStrategy($repOrganizationName); //$this->addStrategy('image', $httpload); //$this->addStrategy('organizationName', $organizationName); }
/** * @param HydratorPluginManager $pluginManager */ public function __construct(HydratorPluginManager $pluginManager) { parent::__construct(); $this->pluginManager = $pluginManager; }