From 549883027406bf00e9a598ad32716c91c908bffb Mon Sep 17 00:00:00 2001 From: lduboeuf Date: Tue, 12 Jan 2016 10:41:02 +0100 Subject: [PATCH] add cache to gitignore --- .gitignore | 1 + .../Hydrator/TodosEntitiesTodoHydrator.php | 47 ------------------- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 cache/doctrine/odm/mongodb/Hydrator/TodosEntitiesTodoHydrator.php diff --git a/.gitignore b/.gitignore index 46a6de7..d0a0aa4 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ app/cache app/api/cache app/api/cache git rm app/api/cache/. app/api/cache git rm app/api/cache/* +cache diff --git a/cache/doctrine/odm/mongodb/Hydrator/TodosEntitiesTodoHydrator.php b/cache/doctrine/odm/mongodb/Hydrator/TodosEntitiesTodoHydrator.php deleted file mode 100644 index ad70202..0000000 --- a/cache/doctrine/odm/mongodb/Hydrator/TodosEntitiesTodoHydrator.php +++ /dev/null @@ -1,47 +0,0 @@ -dm = $dm; - $this->unitOfWork = $uow; - $this->class = $class; - } - - public function hydrate($document, $data, array $hints = array()) - { - $hydratedData = array(); - - /** @Field(type="id") */ - if (isset($data['_id'])) { - $value = $data['_id']; - $return = $value instanceof \MongoId ? (string) $value : $value; - $this->class->reflFields['id']->setValue($document, $return); - $hydratedData['id'] = $return; - } - - /** @Field(type="string") */ - if (isset($data['name'])) { - $value = $data['name']; - $return = (string) $value; - $this->class->reflFields['name']->setValue($document, $return); - $hydratedData['name'] = $return; - } - return $hydratedData; - } -} \ No newline at end of file