title: Adding property by hand to Base model in Symfony1.4 and Doctrine
body: <p>I have added a new field to my table <code>Empresa</code> so I need to change my model. For not regenerate the whole things meaning model-forms-filters I decide to add it by hand (manually) so I'm trying to add a the property to <code>BaseSdrivingEmpresa.class.php</code> as follow:</p>
  
  <pre><code>&lt;?php
  
  /**
   * BaseSdrivingEmpresa
   * 
   * This class has been auto-generated by the Doctrine ORM Framework
   * 
   * @property integer $umbralvoz
   * 
   * @method integer                    getUmbralvoz()                  Returns the current record's "umbralvoz" value
   * @method SdrivingEmpresa            setUmbralvoz()                  Sets the current record's "umbralvoz" value
   * 
   * @package    isecurdriving
   * @subpackage model
   * @author     Your name here
   * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
   */
  abstract class BaseSdrivingEmpresa extends sfDoctrineRecord {
  
      public function setTableDefinition() {
          $this-&gt;setTableName('sdriving_empresa');
  
          $this-&gt;hasColumn('umbralvoz', 'integer', 11, array(
              'type' =&gt; 'integer',
              'notnull' =&gt; false,
              'default' =&gt; 60,
              'length' =&gt; 11,
          ));
      }
  
  }
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>500 | Internal Server Error | Doctrine_Record_UnknownPropertyException</p>
  </blockquote>
  
  <p>Any time I try to get the property to display it on a template:</p>
  
  <pre><code>$id_empresa = $this-&gt;getUser()-&gt;getGuardUser()-&gt;getSfGuardUserProfile()-&gt;getIdempresa();
  $this-&gt;sdriving_configuracion = Doctrine_Core::getTable('SdrivingEmpresa')-&gt;createQuery('a')-&gt;where('a.idempresa = ?', $id_empresa)-&gt;execute();
  
  &lt;?php echo $sdriving_configuracion[0]-&gt;SdrivingEmpresa-&gt;getUmbralvoz() ?&gt;
  </code></pre>
  
  <p>Where is my error?</p>