Commit 0f9ec1f9 authored by jwage's avatar jwage

fixes #719

parent 24e264ac
...@@ -40,27 +40,113 @@ That's it! Now there should be a file called File.php in your myrecords director ...@@ -40,27 +40,113 @@ That's it! Now there should be a file called File.php in your myrecords director
<code type="php"> <code type="php">
/** /**
* This class has been auto-generated by the Doctrine ORM Framework * This class has been auto-generated by the Doctrine ORM Framework
* Created: Saturday 10th of February 2007 01:03:15 PM
*/ */
class File extends Doctrine_Record abstract class BaseFile extends Doctrine_Record
{ {
public function setTableDefinition() public function setTableDefinition()
{ {
$this->hasColumn('id', 'integer', 4, array('notnull' => true, $this->setTableName('file');
'primary' => true, $this->hasColumn('id', 'integer', 4, array (
'unsigned' => true, 'alltypes' =>
'autoincrement' => true)); array (
$this->hasColumn('name', 'string', 150); 0 => 'integer',
$this->hasColumn('size', 'integer', 8); ),
$this->hasColumn('modified', 'integer', 8); 'ntype' => 'int(10) unsigned',
$this->hasColumn('type', 'string', 10); 'unsigned' => 1,
$this->hasColumn('content', 'string', null); 'values' =>
$this->hasColumn('path', 'string', null); array (
} ),
public function setUp() 'primary' => true,
{ 'notnull' => true,
'autoincrement' => true,
} ));
$this->hasColumn('name', 'string', 150, array (
'alltypes' =>
array (
0 => 'string',
),
'ntype' => 'varchar(150)',
'fixed' => false,
'values' =>
array (
),
'primary' => false,
'notnull' => false,
'autoincrement' => false,
));
$this->hasColumn('size', 'integer', 8, array (
'alltypes' =>
array (
0 => 'integer',
),
'ntype' => 'bigint(20)',
'unsigned' => 0,
'values' =>
array (
),
'primary' => false,
'notnull' => false,
'autoincrement' => false,
));
$this->hasColumn('modified', 'integer', 8, array (
'alltypes' =>
array (
0 => 'integer',
),
'ntype' => 'bigint(20)',
'unsigned' => 0,
'values' =>
array (
),
'primary' => false,
'notnull' => false,
'autoincrement' => false,
));
$this->hasColumn('type', 'string', 10, array (
'alltypes' =>
array (
0 => 'string',
),
'ntype' => 'varchar(10)',
'fixed' => false,
'values' =>
array (
),
'primary' => false,
'notnull' => false,
'autoincrement' => false,
));
$this->hasColumn('content', 'string', null, array (
'alltypes' =>
array (
0 => 'string',
1 => 'clob',
),
'ntype' => 'text',
'fixed' => false,
'values' =>
array (
),
'primary' => false,
'notnull' => false,
'autoincrement' => false,
));
$this->hasColumn('path', 'string', null, array (
'alltypes' =>
array (
0 => 'string',
1 => 'clob',
),
'ntype' => 'text',
'fixed' => false,
'values' =>
array (
),
'primary' => false,
'notnull' => false,
'autoincrement' => false,
));
}
} }
</code> </code>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment