<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><span class="Apple-tab-span" style="white-space:pre">        </span>I have a question about which uuid to use when saving a file.<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I have the following code in my controller:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$ItemModel = MidasLoader::loadModel('Item'); </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$lastRevisionDao = $ItemModel->getLastRevision ( $itemDao ); </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>and output of those 2 variables give me:</div><div><br></div><div><div>itemDao : ItemDao Object</div><div>(</div><div> [_model] => Item</div><div> [key:protected] =></div><div> [_key] => item_id</div><div> [saved] => 1</div><div> [item_id] => 62884</div><div> [name] => rkd2_merged_phase001.nii.axml</div><div> [description] =></div><div> [type] => 0</div><div> [sizebytes] => 3027</div><div> [date_creation] => 2012-09-24 20:58:33</div><div> [date_update] => 2012-09-24 20:58:33</div><div> [thumbnail_id] =></div><div> [view] => 0</div><div> [download] => 5</div><div> [privacy_status] => 2</div><div> [uuid] => 506101b9646c4f0e1bea6ba75c3ad5aa7bef3f45eaf71</div><div>)</div><div><br></div><div>lastRevisionDao : ItemRevisionDao Object</div><div>(</div><div> [_model] => ItemRevision</div><div> [key:protected] =></div><div> [_key] => itemrevision_id</div><div> [saved] => 1</div><div> [itemrevision_id] => 62848</div><div> [item_id] => 62884</div><div> [revision] => 3</div><div> [date] => 2012-09-06 20:53:51</div><div> [changes] =></div><div> [user_id] => 13</div><div> [license_id] =></div><div> [uuid] => 506101b996a2811ecc80a82bff73b3b90bdfcaab11d16</div><div>)</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>So there is a uuid for the item and a different uuid for the last revision. Is the uuid for the $itemDao for the first revision? If I use the $itemDao's uuid on a call to midas.item.create, what will happen? If I want to save a new revision of the item, should I go through the process similar to creating a new item: midas.item.create -> midas.upload.generatetoken -> midas.upload.perform ?</div><div><br></div><div>Mona</div><div><br></div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="orphans: 2; text-indent: 0px; widows: 2; -webkit-text-decorations-in-effect: none; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>*********************************************</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 12px; "> Mona Wong</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 12px; "> Web & iPad Application Developer</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 12px; "> San Diego Supercomputer Center</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 12px; "><br></div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 12px; "> Believing we are in control is an</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 12px; "> illusion that brings suffering.</div><div style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 12px; "><div><div>*********************************************</div><div><span class="Apple-style-span" style="font-size: medium; "><br></span></div></div></div></div></span></div></span></div></span></div></span></div></span></div></span></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>