public function getObjectPropertyAnnotations($document)
{
$cacheKey = "object_property_annotations_" . get_class($document);
if (!$this->cache->contains($cacheKey)) {
$refObject = new \ReflectionObject($document);
$annotations = array();
foreach ($refObject->getProperties() as $property) {
$annotation = $this->getPropertyAnnotation($property);
if ($annotation) {
$annotations[$property->getName()] = $annotation;
}
}
$this->cache->save($cacheKey, $annotations);
}
return $this->cache->fetch($cacheKey);
}