public function __construct(Mappings $repository) { parent::__construct(); $this->repository = $repository; }