public function __construct(array $config, EntityManager $em) { $this->config = array_merge($this->config, $config); $this->em = $em; }