[2.0] added load() method
This commit is contained in:
parent
52d55da356
commit
6e4c24684c
@ -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
|
|||||||
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
|
|||||||
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.');
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user