First of all manual edit of your Base*.class.php
is not a good idea as this class is meant to be generated automatically and will be overwritten by next model build. If you want to do anything manually you should do it in direct child of BaseSdrivingEmpresa.class.php
which is SdrivingEmpresa.class.php
.
Second thing is that better place for such modification is SdrivingEmpresaTable.class.php
. I would suggest modifying getInstance
method so it looks like:
public static function getInstance()
{
$this->setColumn('umbralvoz', 'integer', 11, array(
'type' => 'integer',
'notnull' => false,
'default' => 60,
'length' => 11,
));
return Doctrine_Core::getTable('SdrivingEmpresa');
}
Finally, I think that in this case best solution is just simply modify your schema.yml
file, add your column and then use command
./symfony doctrine:build-model
which will rebuild your model without touching forms, filters which you mentioned.