Explorar o código

fixed Event\Adapter\ORM in Timestampable

Sascha-Oliver Prolic %!s(int64=13) %!d(string=hai) anos
pai
achega
b924f99b2e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/Gedmo/Timestampable/Mapping/Event/Adapter/ORM.php

+ 1 - 0
lib/Gedmo/Timestampable/Mapping/Event/Adapter/ORM.php

@@ -22,6 +22,7 @@ final class ORM extends BaseAdapterORM implements TimestampableAdapter
      */
     public function getDateValue($meta, $field)
     {
+        $mapping = $meta->getFieldMapping($field);
         if (isset($mapping['type']) && $mapping['type'] == 'zenddate') {
             return new \Zend_Date();
         }