Browse Source

fixed Event\Adapter\ORM in Timestampable

Sascha-Oliver Prolic 13 years ago
parent
commit
b924f99b2e
1 changed files with 1 additions and 0 deletions
  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();
         }