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
6e4c2468
Commit
6e4c2468
authored
Jul 17, 2009
by
piccoloprincipe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] added load() method
parent
52d55da3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
14 deletions
+9
-14
AssociationMapping.php
lib/Doctrine/ORM/Mapping/AssociationMapping.php
+1
-1
ManyToManyMapping.php
lib/Doctrine/ORM/Mapping/ManyToManyMapping.php
+3
-3
OneToManyMapping.php
lib/Doctrine/ORM/Mapping/OneToManyMapping.php
+4
-9
OneToOneMapping.php
lib/Doctrine/ORM/Mapping/OneToOneMapping.php
+1
-1
No files found.
lib/Doctrine/ORM/Mapping/AssociationMapping.php
View file @
6e4c2468
...
@@ -386,5 +386,5 @@ abstract class AssociationMapping
...
@@ -386,5 +386,5 @@ abstract class AssociationMapping
* @param object $targetEntity
* @param object $targetEntity
* @param EntityManager $em
* @param EntityManager $em
*/
*/
public
function
load
(
$owningEntity
,
$targetEntity
,
$em
)
{}
abstract
public
function
load
(
$owningEntity
,
$targetEntity
,
$em
);
}
}
lib/Doctrine/ORM/Mapping/ManyToManyMapping.php
View file @
6e4c2468
...
@@ -138,9 +138,9 @@ class ManyToManyMapping extends AssociationMapping
...
@@ -138,9 +138,9 @@ class ManyToManyMapping extends AssociationMapping
return
$this
->
targetKeyColumns
;
return
$this
->
targetKeyColumns
;
}
}
public
function
l
azyLoadFor
(
$entity
,
$entityManager
)
public
function
l
oad
(
$owningEntity
,
$targetEntity
,
$em
)
{
{
//TODO
throw
new
Exception
(
'Not yet implemented.'
);
}
}
/**
/**
...
@@ -152,4 +152,4 @@ class ManyToManyMapping extends AssociationMapping
...
@@ -152,4 +152,4 @@ class ManyToManyMapping extends AssociationMapping
{
{
return
true
;
return
true
;
}
}
}
}
\ No newline at end of file
lib/Doctrine/ORM/Mapping/OneToManyMapping.php
View file @
6e4c2468
...
@@ -96,14 +96,9 @@ class OneToManyMapping extends AssociationMapping
...
@@ -96,14 +96,9 @@ class OneToManyMapping extends AssociationMapping
{
{
return
true
;
return
true
;
}
}
/**
*
* @param <type> $entity
* @override
*/
public
function
lazyLoadFor
(
$entity
,
$entityManager
)
{
public
function
load
(
$owningEntity
,
$targetEntity
,
$em
)
{
throw
new
Exception
(
'Not yet implemented.'
);
}
}
}
}
\ No newline at end of file
lib/Doctrine/ORM/Mapping/OneToOneMapping.php
View file @
6e4c2468
...
@@ -181,4 +181,4 @@ class OneToOneMapping extends AssociationMapping
...
@@ -181,4 +181,4 @@ class OneToOneMapping extends AssociationMapping
$em
->
getUnitOfWork
()
->
getEntityPersister
(
$this
->
targetEntityName
)
->
load
(
$conditions
,
$targetEntity
);
$em
->
getUnitOfWork
()
->
getEntityPersister
(
$this
->
targetEntityName
)
->
load
(
$conditions
,
$targetEntity
);
}
}
}
}
\ No newline at end of file
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