Forráskód Böngészése

fixed Event\Adapter\ORM in Timestampable

Sascha-Oliver Prolic 13 éve
szülő
commit
b924f99b2e

+ 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)
     public function getDateValue($meta, $field)
     {
     {
+        $mapping = $meta->getFieldMapping($field);
         if (isset($mapping['type']) && $mapping['type'] == 'zenddate') {
         if (isset($mapping['type']) && $mapping['type'] == 'zenddate') {
             return new \Zend_Date();
             return new \Zend_Date();
         }
         }