×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Algirdas Gr
Added: Jun 18, 2014 6:06 AM
Modified: Jun 18, 2014 6:07 AM
Views: 29
  1. $query->getArrayResult();
  2.  
  3. //this is equivalent to using
  4. $query->getResult(Doctrine\ORM\Query::HYDRATE_ARRAY);
  5.  
  6. // Hydration alternatives:
  7. // Doctrine\ORM\Query::HYDRATE_OBJECT
  8. // Doctrine\ORM\Query::HYDRATE_ARRAY
  9. // Doctrine\ORM\Query::HYDRATE_SCALAR
  10. // Doctrine\ORM\Query::HYDRATE_SINGLE_SCALAR
  11. // Doctrine\ORM\Query::HYDRATE_SIMPLEOBJECT