Commit 6e4c2468 authored by piccoloprincipe's avatar piccoloprincipe

[2.0] added load() method

parent 52d55da3
...@@ -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);
} }
...@@ -138,9 +138,9 @@ class ManyToManyMapping extends AssociationMapping ...@@ -138,9 +138,9 @@ class ManyToManyMapping extends AssociationMapping
return $this->targetKeyColumns; return $this->targetKeyColumns;
} }
public function lazyLoadFor($entity, $entityManager) public function load($owningEntity, $targetEntity, $em)
{ {
//TODO throw new Exception('Not yet implemented.');
} }
/** /**
......
...@@ -97,13 +97,8 @@ class OneToManyMapping extends AssociationMapping ...@@ -97,13 +97,8 @@ class OneToManyMapping extends AssociationMapping
return true; return true;
} }
/** public function load($owningEntity, $targetEntity, $em)
*
* @param <type> $entity
* @override
*/
public function lazyLoadFor($entity, $entityManager)
{ {
throw new Exception('Not yet implemented.');
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment