Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Resolve bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jul 1, 2012
1 parent 923fa78 commit bd5e189
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Hydrator/ClassMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public function hydrate(array $data, $object)
$letter = substr(array_shift($letters), 1, 1);
return ucfirst($letter);
};

foreach ($data as $property => $value) {
if (!$this->useCamelCase) {
$property = preg_replace_callback('/(_[a-z])/', $transform, $property);
Expand Down

0 comments on commit bd5e189

Please sign in to comment.