Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
0f9ec1f9
Commit
0f9ec1f9
authored
Jan 22, 2008
by
jwage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #719
parent
24e264ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
105 additions
and
19 deletions
+105
-19
working-with-existing-databases.txt
...cs/en/getting-started/working-with-existing-databases.txt
+105
-19
No files found.
manual/docs/en/getting-started/working-with-existing-databases.txt
View file @
0f9ec1f9
...
@@ -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 Base
File 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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment