| | 345 | $result =& $this->_generateObjectGraphFromResultSet($results,$included_associations,$virtual_limit); |
|---|
| | 346 | return $result; |
|---|
| | 347 | } |
|---|
| | 348 | |
|---|
| | 349 | /** |
|---|
| | 350 | * Pass hand-made sql directly to _db->execute and generate the OG with this method. |
|---|
| | 351 | * |
|---|
| | 352 | * @param ADOResultSet $results a result set from Db->execute |
|---|
| | 353 | * @param array $included_associations just like in ->find(); $options['include']; but in fact unused |
|---|
| | 354 | * @param mixed $virtual_limit int or false; unsure if this works |
|---|
| | 355 | * @return array ObjectGraph as an array |
|---|
| | 356 | */ |
|---|
| | 357 | function &_generateObjectGraphFromResultSet($results,$included_associations = array(), $virtual_limit = false) |
|---|
| | 358 | { |
|---|
| | 359 | $objects = array(); |
|---|