Example #1
0
 /**
  * Class constructor
  *
  * @param string $name
  * @param string $type name of the One_Scheme_Attribute_Type of the attribute
  * @param array additional options that can be passed to the array
  */
 public function __construct($name, $type, array $options = array())
 {
     $this->set('name', $name);
     $this->set('column', $name);
     // by default, keep it the same
     $this->set('alias', $name);
     // by default, keep it the same
     $this->set('type', One_Repository::getType($type));
     foreach ($options as $key => $val) {
         $this->set($key, $val);
     }
 }