Fix a couple things

This commit is contained in:
Zach Copley 2011-03-07 21:34:57 -08:00
parent be53b94bfd
commit 99bd8c670c
2 changed files with 5 additions and 3 deletions

View File

@ -96,7 +96,7 @@ class Profile_detail extends Memcached_DataObject
'value' => DB_DATAOBJECT_STR, 'value' => DB_DATAOBJECT_STR,
'rel' => 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, '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); 'modified' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);

View File

@ -35,8 +35,10 @@ class ExtendedProfile
$detail = new Profile_detail(); $detail = new Profile_detail();
$detail->profile_id = $this->profile->id; $detail->profile_id = $this->profile->id;
$detail->find(); $detail->find();
while ($detail->get()) { $fields = array();
while ($detail->fetch()) {
$fields[$detail->field][] = clone($detail); $fields[$detail->field][] = clone($detail);
} }
return $fields; return $fields;