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
87fa5b24
Commit
87fa5b24
authored
Apr 14, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
e89a841b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
66 deletions
+0
-66
Record.class.php
classes/Record.class.php
+0
-66
No files found.
classes/Record.class.php
View file @
87fa5b24
...
@@ -885,72 +885,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
...
@@ -885,72 +885,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
}
}
endswitch
;
endswitch
;
/**
$coll = false;
if($fk instanceof Doctrine_ForeignKey ||
$fk instanceof Doctrine_LocalKey) {
$graph = $table->getDQLParser();
// get the local identifier
$id = $this->get($local);
if(empty($id)) {
$this->references[$name] = $table->create();
if($this->table->hasPrimaryKey($fk->getLocal())) {
$this->references[$name]->set($fk->getForeign(),$this);
} else {
$this->set($fk->getLocal(),$this->references[$name]);
}
} else {
if($this->table->hasPrimaryKey($fk->getForeign())) {
try {
$coll = new Doctrine_Collection($table);
$coll[0] = $table->getCache()->fetch($id);
} catch(InvalidKeyException $e) {
$coll = false;
}
}
if( ! $coll) {
$query = "FROM ".$name." WHERE ".$name.".".$fk->getForeign()." = ?";
$coll = $graph->query($query,array($id));
}
if($fk->getType() == Doctrine_Table::ONE_COMPOSITE ||
$fk->getType() == Doctrine_Table::ONE_AGGREGATE) {
if($coll->contains(0)) {
$this->references[$name] = $coll[0];
$this->originals[$name] = clone $coll[0];
} else {
$this->references[$name] = $table->create();
if($this->table->hasPrimaryKey($fk->getLocal())) {
$this->references[$name]->set($fk->getForeign(),$this);
} else {
$this->set($fk->getLocal(),$this->references[$name]);
}
}
} else {
$this->references[$name] = $coll;
$this->references[$name]->setReference($this,$fk);
$this->originals[$name] = clone $coll;
}
}
*/
break
;
break
;
endswitch
;
endswitch
;
}
}
...
...
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