Skip to content

Commit

Permalink
Added setter for fieldTypes variable, to be configurable in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed May 26, 2010
1 parent 5efbf4c commit 553874d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions library/ZFDoctrine/Form/Model.php
Expand Up @@ -146,6 +146,10 @@ public function setOptions(array $options) {
$this->setFieldLabels($options['fieldLabels']);
}

if (isset($options['fieldTypes'])) {
$this->setFieldTypes($options['fieldTypes']);
}

if (isset($options['generateManyFields'])) {
$this->setGenerateManyFields($options['generateManyFields']);
}
Expand All @@ -162,6 +166,10 @@ public function setFieldLabels(array $labels) {
$this->_fieldLabels = $labels;
}

public function setFieldTypes(array $types) {
$this->_fieldTypes = $types;
}

public function setColumnTypes(array $types) {
$this->_columnTypes = $types;
}
Expand Down

0 comments on commit 553874d

Please sign in to comment.