Permalink
Browse files

Don't hydrate columns added by the plateform.

  • Loading branch information...
1 parent 971865f commit c8d899b14446accf869ddc0043f4235284375755 @benja-M-1 committed Aug 17, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php
@@ -106,6 +106,11 @@ protected function hydrateRowData(array $sqlResult, array &$cache, array &$resul
}
foreach ($sqlResult as $column => $value) {
+ if (in_array(strtoupper($column), $this->_platform->getDoctrineExtraColumns())
+ || in_array(strtolower($column), $this->_platform->getDoctrineExtraColumns())) {
+ continue;
+ }
+
// Hydrate column information if not yet present
if ( ! isset($cache[$column])) {
if (($info = $this->hydrateColumnInfo($entityName, $column)) === null) {

0 comments on commit c8d899b

Please sign in to comment.