/** * Adds a new field * * @param Atomik_Model_Field_Abstract $field */ public function addField(Atomik_Model_Field_Abstract $field) { $this->_fields[$field->name] = $field; if ($field->getOption('primary-key', false)) { $this->setPrimaryKeyField($field); } }
/** * Constructor * * @param string $name * @param array $options */ public function __construct($name, $type, $options = array()) { parent::__construct($name, $options); $this->type = $type; }