Commit 6e4c2468 authored by piccoloprincipe's avatar piccoloprincipe

[2.0] added load() method

parent 52d55da3
......@@ -386,5 +386,5 @@ abstract class AssociationMapping
* @param object $targetEntity
* @param EntityManager $em
*/
public function load($owningEntity, $targetEntity, $em) {}
abstract public function load($owningEntity, $targetEntity, $em);
}
......@@ -138,9 +138,9 @@ class ManyToManyMapping extends AssociationMapping
return $this->targetKeyColumns;
}
public function lazyLoadFor($entity, $entityManager)
public function load($owningEntity, $targetEntity, $em)
{
//TODO
throw new Exception('Not yet implemented.');
}
/**
......@@ -152,4 +152,4 @@ class ManyToManyMapping extends AssociationMapping
{
return true;
}
}
\ No newline at end of file
}
......@@ -96,14 +96,9 @@ class OneToManyMapping extends AssociationMapping
{
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
}
......@@ -181,4 +181,4 @@ class OneToOneMapping extends AssociationMapping
$em->getUnitOfWork()->getEntityPersister($this->targetEntityName)->load($conditions, $targetEntity);
}
}
\ No newline at end of file
}
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