I’ve read about hydration in doctrine’s documentation but I still can’t understand what it is.
Could someone please explain?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hydration is a method used to return query results. For example:
HYDRATE_ARRAY– This will return you an array of records that are represented by another array:HYDRATE_RECORD– This will return you an collection (Doctrine_Collection) of objects:HYDRATE_SINGULAR_SCALAR– Will return the value of first column of query’s result:There is a few more methods , you can read about each in documentation.