Doctrine\ORM\Mapping\Driver\AnnotationDriver::getFetchMode
Attempts to resolve the fetch mode.
Signature
private function getFetchMode(string
$className,
string
$fetchMode )
Parameters
$className
— string- The class name
$fetchMode
— string- The fetch mode
Returns
- integer
- The fetch mode as defined in ClassMetadata
Errors/Exceptions
-
MappingException
- If the fetch mode is not valid