protected function lstMemberdetailsesAsLibraryMember_Update()
 {
     if ($this->lstMemberdetailsesAsLibraryMember) {
         $this->objLibrarydetails->UnassociateAllMemberdetailsesAsLibraryMember();
         $objSelectedListItems = $this->lstMemberdetailsesAsLibraryMember->SelectedItems;
         if ($objSelectedListItems) {
             foreach ($objSelectedListItems as $objListItem) {
                 $this->objLibrarydetails->AssociateMemberdetailsAsLibraryMember(Memberdetails::Load($objListItem->Value));
             }
         }
     }
 }
 /**
  * Override method to perform a property "Get"
  * This will get the value of $strName
  *
  * @param string $strName Name of the property to get
  * @return mixed
  */
 public function __get($strName)
 {
     switch ($strName) {
         ///////////////////
         // Member Variables
         ///////////////////
         case 'Id':
             /**
              * Gets the value for intId (Read-Only PK)
              * @return integer
              */
             return $this->intId;
         case 'MemberId':
             /**
              * Gets the value for intMemberId (Not Null)
              * @return integer
              */
             return $this->intMemberId;
         case 'AssetId':
             /**
              * Gets the value for intAssetId (Not Null)
              * @return integer
              */
             return $this->intAssetId;
             ///////////////////
             // Member Objects
             ///////////////////
         ///////////////////
         // Member Objects
         ///////////////////
         case 'Member':
             /**
              * Gets the value for the Memberdetails object referenced by intMemberId (Not Null)
              * @return Memberdetails
              */
             try {
                 if (!$this->objMember && !is_null($this->intMemberId)) {
                     $this->objMember = Memberdetails::Load($this->intMemberId);
                 }
                 return $this->objMember;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
         case 'Asset':
             /**
              * Gets the value for the Myassets object referenced by intAssetId (Not Null)
              * @return Myassets
              */
             try {
                 if (!$this->objAsset && !is_null($this->intAssetId)) {
                     $this->objAsset = Myassets::Load($this->intAssetId);
                 }
                 return $this->objAsset;
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
             ////////////////////////////
             // Virtual Object References (Many to Many and Reverse References)
             // (If restored via a "Many-to" expansion)
             ////////////////////////////
         ////////////////////////////
         // Virtual Object References (Many to Many and Reverse References)
         // (If restored via a "Many-to" expansion)
         ////////////////////////////
         case '__Restored':
             return $this->__blnRestored;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * Reload this Memberdetails from the database.
  * @return void
  */
 public function Reload()
 {
     // Make sure we are actually Restored from the database
     if (!$this->__blnRestored) {
         throw new QCallerException('Cannot call Reload() on a new, unsaved Memberdetails object.');
     }
     // Reload the Object
     $objReloaded = Memberdetails::Load($this->intId);
     // Update $this's local variables to match
     $this->strMemberId = $objReloaded->strMemberId;
     $this->strFullName = $objReloaded->strFullName;
     $this->strPassword = $objReloaded->strPassword;
     $this->blnActive = $objReloaded->blnActive;
 }