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
9a4f9e27
Commit
9a4f9e27
authored
Aug 09, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed formatting
parent
78f683d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
424CTestCase.php
tests/Ticket/424CTestCase.php
+12
-11
No files found.
tests/Ticket/424CTestCase.php
View file @
9a4f9e27
...
@@ -107,21 +107,22 @@ class mmrUser_C extends Doctrine_Record
...
@@ -107,21 +107,22 @@ class mmrUser_C extends Doctrine_Record
public
function
setTableDefinition
()
public
function
setTableDefinition
()
{
{
// Works when
// Works when
$this
->
hasColumn
(
'
g_id as id'
,
'string'
,
30
,
array
(
'primary'
=>
true
));
$this
->
hasColumn
(
'
u_id as id'
,
'string'
,
30
,
array
(
'primary'
=>
true
));
$this
->
hasColumn
(
'name'
,
'string'
,
30
);
$this
->
hasColumn
(
'name'
,
'string'
,
30
);
}
}
}
}
class
mmrGroup_C
extends
Doctrine_Record
class
mmrGroup_C
extends
Doctrine_Record
{
{
public
function
setUp
()
{
public
function
setUp
()
{
$this
->
hasMany
(
'mmrUser_C'
,
array
(
'local'
=>
'group_id'
,
$this
->
hasMany
(
'mmrUser_C'
,
array
(
'local'
=>
'group_id'
,
'foreign'
=>
'user_id'
,
'foreign'
=>
'user_id'
,
'refClass'
=>
'mmrGroupUser_C'
));
'refClass'
=>
'mmrGroupUser_C'
));
}
}
public
function
setTableDefinition
()
{
public
function
setTableDefinition
()
// Works when
{
$this
->
hasColumn
(
'
u_id as id'
,
'string'
,
30
,
array
(
'primary'
=>
true
));
$this
->
hasColumn
(
'
g_id as id'
,
'string'
,
30
,
array
(
'primary'
=>
true
));
$this
->
hasColumn
(
'name'
,
'string'
,
30
);
$this
->
hasColumn
(
'name'
,
'string'
,
30
);
}
}
}
}
...
...
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