Permalink
Browse files

Hotfix missed fieldMap injection in AbstractGateway methods

  • Loading branch information...
1 parent 8884bba commit aeeea78e7fb332fe453f3e364646b7ec67cf00af @jeremiahsmall jeremiahsmall committed Mar 20, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 library/Soliant/SimpleFM/ZF2/Gateway/AbstractGateway.php
@@ -101,7 +101,7 @@ public function find($recid)
->setCommandArray($commandArray)
->setLayoutname($this->getEntityLayout());
$result = $this->handleAdapterResult($this->simpleFMAdapter->execute());
- $entity = new $this->entityName($result['rows'][0]);
+ $entity = new $this->entityName($this->fieldMap, $result['rows'][0]);
return $entity;
}
@@ -118,7 +118,7 @@ public function findOneBy(array $search)
->setCommandArray($commandArray)
->setLayoutname($this->getEntityLayout());
$result = $this->handleAdapterResult($this->simpleFMAdapter->execute());
- $entity = new $this->entityName($result['rows'][0]);
+ $entity = new $this->entityName($this->fieldMap, $result['rows'][0]);
return $entity;
}
@@ -164,7 +164,7 @@ public function create(AbstractEntity $entity)
->setCommandArray($commandArray)
->setLayoutname($this->getEntityLayout());
$result = $this->handleAdapterResult($this->simpleFMAdapter->execute());
- $entity = new $this->entityName($result['rows'][0]);
+ $entity = new $this->entityName($this->fieldMap, $result['rows'][0]);
return $entity;
}
@@ -181,7 +181,7 @@ public function edit(AbstractEntity $entity)
->setLayoutname($this->getEntityLayout());
$result = $this->handleAdapterResult($this->simpleFMAdapter->execute());
- $entity = new $this->entityName($result['rows'][0]);
+ $entity = new $this->entityName($this->fieldMap, $result['rows'][0]);
return $entity;
}

0 comments on commit aeeea78

Please sign in to comment.