Problems deleting records with Doctrine 1. Any help?
<p>I'm testing the following code, can anyone tell me what's wrong with it? </p>

<pre><code>&lt;?php

require_once(dirname(__FILE__) . '/lib/Doctrine.php');
spl_autoload_register(array('Doctrine', 'autoload'));
$manager = Doctrine_Manager::getInstance();

class Users extends Doctrine_Record {
    public function setTableDefinition() {
        $this-&gt;setTableName('users');
        $this-&gt;hasColumn('id', 'integer', null, array('primary' =&gt; true));
        $this-&gt;hasColumn('name', 'string', 255);
    }
}

$conn = Doctrine_Manager::connection('mysql://root:123456@localhost/test');

$users = new Doctrine_Core::getTable('Users');
$user = $users-&gt;find(10);
$user-&gt;delete();
</code></pre>
