/**
  * Creates a new persistent collection.
  */
 public function __construct(EntityManager $em, $class, array $data = array())
 {
     parent::__construct($data);
     $this->_type = $class->name;
     $this->_em = $em;
     $this->_typeClass = $class;
 }