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
72466b36
Commit
72466b36
authored
Jun 14, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
b21faef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Parser.php
lib/Doctrine/Relation/Parser.php
+8
-4
No files found.
lib/Doctrine/Relation/Parser.php
View file @
72466b36
...
...
@@ -102,6 +102,8 @@ class Doctrine_Relation_Parser
}
$this
->
_pending
[
$alias
]
=
array_merge
(
$options
,
array
(
'class'
=>
$name
,
'alias'
=>
$alias
));
return
$this
->
_pending
[
$alias
];
}
/**
* getRelation
...
...
@@ -124,8 +126,8 @@ class Doctrine_Relation_Parser
$localClasses
=
array_merge
(
$this
->
_table
->
getOption
(
'parents'
),
array
(
$this
->
_table
->
getComponentName
()));
if
(
!
isset
(
$this
->
_pending
[
$def
[
'refClass'
]])
&&
!
isset
(
$this
->
_relations
[
$def
[
'refClass'
]]))
{
!
isset
(
$this
->
_relations
[
$def
[
'refClass'
]]))
{
$def
[
'refTable'
]
->
getRelationParser
()
->
bind
(
$this
->
_table
->
getComponentName
(),
array
(
'type'
=>
Doctrine_Relation
::
ONE
,
'local'
=>
$def
[
'local'
],
...
...
@@ -133,8 +135,10 @@ class Doctrine_Relation_Parser
'localKey'
=>
true
,
));
$this
->
bind
(
$def
[
'refClass'
],
array
(
'type'
=>
Doctrine_Relation
::
MANY
,
'foreign'
=>
$def
[
'local'
]));
$this
->
bind
(
$def
[
'refClass'
],
array
(
'type'
=>
Doctrine_Relation
::
MANY
,
'foreign'
=>
$def
[
'local'
],
'local'
=>
$this
->
_table
->
getIdentifier
()));
}
if
(
in_array
(
$def
[
'class'
],
$localClasses
))
{
$rel
=
new
Doctrine_Relation_Nest
(
$def
);
...
...
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