Commit 0f9ec1f9 authored by jwage's avatar jwage

fixes #719

parent 24e264ac
...@@ -40,26 +40,112 @@ That's it! Now there should be a file called File.php in your myrecords director ...@@ -40,26 +40,112 @@ 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');
$this->hasColumn('id', 'integer', 4, array (
'alltypes' =>
array (
0 => 'integer',
),
'ntype' => 'int(10) unsigned',
'unsigned' => 1,
'values' =>
array (
),
'primary' => true, 'primary' => true,
'unsigned' => true, 'notnull' => true,
'autoincrement' => true)); 'autoincrement' => true,
$this->hasColumn('name', 'string', 150); ));
$this->hasColumn('size', 'integer', 8); $this->hasColumn('name', 'string', 150, array (
$this->hasColumn('modified', 'integer', 8); 'alltypes' =>
$this->hasColumn('type', 'string', 10); array (
$this->hasColumn('content', 'string', null); 0 => 'string',
$this->hasColumn('path', 'string', null); ),
} 'ntype' => 'varchar(150)',
public function setUp() '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