Reads the child profiles for the given token.
string $token The parent token:
string $parent The parent instance:
array An array of Profile instance
protected function readChildren($token, $parent) {
$db = $this
->initDb();
$data = $this
->fetch($db, 'SELECT token, data, ip, method, url, time FROM sf_profiler_data WHERE parent = :token', array(
':token' => $token,
));
$this
->close($db);
if (!$data) {
return array();
}
$profiles = array();
foreach ($data as $d) {
$profiles[] = $this
->createProfileFromData($d['token'], $d, $parent);
}
return $profiles;
}