public function loadClassMetadata(ClassMetadataInterface $metadata) { $reflClass = $metadata->getReflectionClass(); //Iterate over properties to get annotations foreach ($reflClass->getProperties() as $property) { $this->readProperty($property, $metadata); } }