public function __construct($name, $class, $required = false) { parent::__construct($name, $required, new $class(), array()); if (!$this->getValue() instanceof Entities_Interface) { throw new Entities_Exception("Invalid reference field value!"); } }
public function __construct($name, $required = false, $validators = array(), $value = array()) { parent::__construct($name, $required, $value, $validators); }