Example #1
0
 /**
  * @param string            $type
  * @param string            $name
  * @param Entity\Reflection $entityReflection
  * @param bool              $readonly
  * @param string            $options
  */
 public function __construct($type, $name, Entity\Reflection $entityReflection, $readonly = false, $options = null)
 {
     $this->entityReflection = $entityReflection;
     $this->name = $name;
     $this->options = Annotation::parseOptions($options);
     $this->readonly = (bool) $readonly;
     $this->_initType($type);
     $this->_initComputed();
     $this->_initMapping();
     $this->_initEnumeration();
     $this->_initAssociation();
 }