/** * @param Type $type */ public function __construct(\Platform\Type $type) { if ($type instanceof Entity) { $type->attach($this->getEventManager()); } $this->_type = $type; }