浏览代码

fixed Event\Adapter\ORM in Timestampable

Sascha-Oliver Prolic 13 年之前
父节点
当前提交
b924f99b2e
共有 1 个文件被更改,包括 1 次插入0 次删除
  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();
         }