/** * Constructor * * @param Type $type */ public function __construct(Type $type) { $manager = $type->getResource()->getManager(); parent::__construct($manager); $this->type = $type; }