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

isAggregateRoot() protected method

Check for $className being an aggregate root.
protected isAggregateRoot ( string $className, string $propertySourceHint ) : boolean
$className string
$propertySourceHint string
return boolean
    protected function isAggregateRoot($className, $propertySourceHint)
    {
        $className = $this->getUnproxiedClassName($className);
        try {
            $classSchema = $this->getClassSchema($className);
            return $classSchema->isAggregateRoot();
        } 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);
        }
    }