'value' => DB_DATAOBJECT_STR,
'rel' => DB_DATAOBJECT_STR,
- 'ref_profile' => DB_DATAOBJECT_ID,
+ 'ref_profile' => DB_DATAOBJECT_INT,
'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL,
'modified' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);
$detail = new Profile_detail();
$detail->profile_id = $this->profile->id;
$detail->find();
-
- while ($detail->get()) {
+
+ $fields = array();
+
+ while ($detail->fetch()) {
$fields[$detail->field][] = clone($detail);
}
return $fields;