[2.0] added load() method
This commit is contained in:
parent
52d55da356
commit
6e4c24684c
4 changed files with 9 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -181,4 +181,4 @@ class OneToOneMapping extends AssociationMapping
|
|||
|
||||
$em->getUnitOfWork()->getEntityPersister($this->targetEntityName)->load($conditions, $targetEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue