toStdClass($recursive = true)

This method convert all mapped informationg (including cascating relatioinships) into a stdClass Objecto to better manage it into views or anything you want to.
By default recursive is true and full recursive is false.
Recursive means it will take all relationships ( currently or not ) and convert in a zero level to stdClass Object too.

@param Boolean $recursive
@return stdClass


By default toStdClass() method brings the Model recursively that menas it will bring all current relationships instanced at that time recusively. If $recursive = false than it will bring only the first level.


Default Usage

$user = new Users();


For more and detailed information see toArray() in