]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Repository/GoogleTokenRepository.php
Replace _em now private with manager member variable
[airbundle] / Repository / GoogleTokenRepository.php
index 29b96d28ca8381647f7b16ad04a8f70513f1054e..4aecf6c857a761a585c823cb2deeef69ab3de8fa 100644 (file)
@@ -95,8 +95,8 @@ SQL;
                        ->addScalarResult('uid', 'uid', 'integer')
                        ->addScalarResult('access', 'access', 'string')
                        ->addScalarResult('refresh', 'refresh', 'string')
-                       ->addScalarResult('created', 'created', 'datetime')
-                       ->addScalarResult('expired', 'expired', 'datetime')
+                       ->addScalarResult('created', 'created', 'datetime_immutable')
+                       ->addScalarResult('expired', 'expired', 'datetime_immutable')
                        ->addScalarResult('cids', 'cids', 'string')
                        ->addScalarResult('cmails', 'cmails', 'string')
                        ->addScalarResult('csummaries', 'csummaries', 'string')
@@ -109,7 +109,7 @@ SQL;
                $result = [];
 
                //Get tokens
-               $tokens = $this->_em
+               $tokens = $this->manager
                        ->createNativeQuery($req, $rsm)
                        ->getArrayResult();