Neos\Flow\Persistence\Doctrine\Mapping\Driver\FlowAnnotationDriver::isValueObject PHP Method

isValueObject() protected method

Check for $className being a value object.
protected isValueObject ( string $className, string $propertySourceHint ) : boolean
$className string
$propertySourceHint string
return boolean
    protected function isValueObject($className, $propertySourceHint)
    {
        $className = $this->getUnproxiedClassName($className);
        try {
            $classSchema = $this->getClassSchema($className);
            return $classSchema->getModelType() === ClassSchema::MODELTYPE_VALUEOBJECT;
        } catch (ClassSchemaNotFoundException $exception) {
            throw new ClassSchemaNotFoundException('No class schema found for "' . $className . '". The class should probably marked as entity or value object! This happened while examining "' . $propertySourceHint . '"', 1340185197);
        }
    }