public function __construct(array $elements = [], EntityManager $em = null) { parent::__construct($elements); $this->em = $em; }