Doctrine\ODM\OrientDB\Mapper\Hydration\Hydrator::verifyCastingSupport PHP Метод

verifyCastingSupport() защищенный Метод

If not, an exception is raised.
protected verifyCastingSupport ( Caster $caster, string $method, string $annotationType )
$caster Doctrine\ODM\OrientDB\Caster\Caster
$method string
$annotationType string
    protected function verifyCastingSupport(Caster $caster, $method, $annotationType)
    {
        if (!method_exists($caster, $method)) {
            $message = sprintf('You are trying to map a property wich seems not to have a standard type (%s). Do you have a typo in your annotation?' . 'If you think everything\'s ok, go check on %s class which property types are supported.', $annotationType, get_class($caster));
            throw new Exception($message);
        }
    }