Skip to content

Commit

Permalink
Hotfix missed fieldMap injection in AbstractGateway methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahsmall committed Mar 20, 2013
1 parent 8884bba commit aeeea78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/Soliant/SimpleFM/ZF2/Gateway/AbstractGateway.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function find($recid)
->setCommandArray($commandArray) ->setCommandArray($commandArray)
->setLayoutname($this->getEntityLayout()); ->setLayoutname($this->getEntityLayout());
$result = $this->handleAdapterResult($this->simpleFMAdapter->execute()); $result = $this->handleAdapterResult($this->simpleFMAdapter->execute());
$entity = new $this->entityName($result['rows'][0]); $entity = new $this->entityName($this->fieldMap, $result['rows'][0]);
return $entity; return $entity;
} }


Expand All @@ -118,7 +118,7 @@ public function findOneBy(array $search)
->setCommandArray($commandArray) ->setCommandArray($commandArray)
->setLayoutname($this->getEntityLayout()); ->setLayoutname($this->getEntityLayout());
$result = $this->handleAdapterResult($this->simpleFMAdapter->execute()); $result = $this->handleAdapterResult($this->simpleFMAdapter->execute());
$entity = new $this->entityName($result['rows'][0]); $entity = new $this->entityName($this->fieldMap, $result['rows'][0]);
return $entity; return $entity;
} }


Expand Down Expand Up @@ -164,7 +164,7 @@ public function create(AbstractEntity $entity)
->setCommandArray($commandArray) ->setCommandArray($commandArray)
->setLayoutname($this->getEntityLayout()); ->setLayoutname($this->getEntityLayout());
$result = $this->handleAdapterResult($this->simpleFMAdapter->execute()); $result = $this->handleAdapterResult($this->simpleFMAdapter->execute());
$entity = new $this->entityName($result['rows'][0]); $entity = new $this->entityName($this->fieldMap, $result['rows'][0]);
return $entity; return $entity;
} }


Expand All @@ -181,7 +181,7 @@ public function edit(AbstractEntity $entity)
->setLayoutname($this->getEntityLayout()); ->setLayoutname($this->getEntityLayout());
$result = $this->handleAdapterResult($this->simpleFMAdapter->execute()); $result = $this->handleAdapterResult($this->simpleFMAdapter->execute());


$entity = new $this->entityName($result['rows'][0]); $entity = new $this->entityName($this->fieldMap, $result['rows'][0]);
return $entity; return $entity;
} }


Expand Down

0 comments on commit aeeea78

Please sign in to comment.