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
e1d295f3
Commit
e1d295f3
authored
Jun 18, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
721fd265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
classes.php
tests/classes.php
+22
-14
No files found.
tests/classes.php
View file @
e1d295f3
...
@@ -346,34 +346,42 @@ class ORM_TestItem extends Doctrine_Record {
...
@@ -346,34 +346,42 @@ class ORM_TestItem extends Doctrine_Record {
$this
->
hasOne
(
'ORM_TestEntry'
,
'ORM_TestEntry.itemID'
);
$this
->
hasOne
(
'ORM_TestEntry'
,
'ORM_TestEntry.itemID'
);
}
}
}
}
class
ORM_AccessControl
extends
Doctrine_Record
{
class
ORM_AccessControl
extends
Doctrine_Record
public
function
setTableDefinition
()
{
{
public
function
setTableDefinition
()
{
$this
->
hasColumn
(
'name'
,
'string'
,
255
);
$this
->
hasColumn
(
'name'
,
'string'
,
255
);
}
}
public
function
setUp
()
{
public
function
setUp
()
{
$this
->
hasMany
(
'ORM_AccessGroup as accessGroups'
,
'ORM_AccessControlsGroups.accessGroupID'
);
$this
->
hasMany
(
'ORM_AccessGroup as accessGroups'
,
'ORM_AccessControlsGroups.accessGroupID'
);
}
}
}
}
class
ORM_AccessGroup
extends
Doctrine_Record
{
class
ORM_AccessGroup
extends
Doctrine_Record
public
function
setTableDefinition
()
{
{
public
function
setTableDefinition
()
{
$this
->
hasColumn
(
'name'
,
'string'
,
255
);
$this
->
hasColumn
(
'name'
,
'string'
,
255
);
}
}
public
function
setUp
()
{
public
function
setUp
()
{
$this
->
hasMany
(
'ORM_AccessControl as accessControls'
,
'ORM_AccessControlsGroups.accessControlID'
);
$this
->
hasMany
(
'ORM_AccessControl as accessControls'
,
'ORM_AccessControlsGroups.accessControlID'
);
}
}
}
}
class
ORM_AccessControlsGroups
extends
Doctrine_Record
{
class
ORM_AccessControlsGroups
extends
Doctrine_Record
public
function
setTableDefinition
()
{
{
$this
->
hasColumn
(
'accessControlID'
,
'integer'
,
11
);
public
function
setTableDefinition
()
$this
->
hasColumn
(
'accessGroupID'
,
'integer'
,
11
);
{
$this
->
hasColumn
(
'accessControlID'
,
'integer'
,
11
,
array
(
'primary'
=>
true
));
$this
->
setPrimaryKey
(
array
(
'accessControlID'
,
'accessGroupID'
));
$this
->
hasColumn
(
'accessGroupID'
,
'integer'
,
11
,
array
(
'primary'
=>
true
));
}
}
}
}
class
EnumTest
extends
Doctrine_Record
{
class
EnumTest
extends
Doctrine_Record
public
function
setTableDefinition
()
{
{
public
function
setTableDefinition
()
{
$this
->
hasColumn
(
'status'
,
'enum'
,
11
,
array
(
'values'
=>
array
(
'open'
,
'verified'
,
'closed'
)));
$this
->
hasColumn
(
'status'
,
'enum'
,
11
,
array
(
'values'
=>
array
(
'open'
,
'verified'
,
'closed'
)));
}
}
}
}
...
...
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