public function fromSyncro($properties) { $this->syncrotronService->unsyncroObject($properties, $this); // now make sure the other things are aligned if (isset($properties->Post_ThreadEmail)) { $member = DataList::create('Member')->filter(array('Email' => $properties->Post_ThreadEmail))->first(); if ($member) { $this->ThreadOwnerID = $member->ID; } } if (isset($properties->Post_OwnerEmail)) { $member = DataList::create('Member')->filter(array('Email' => $properties->Post_OwnerEmail))->first(); if ($member) { $this->OwnerID = $member->ID; } } // bind the correct permission source $this->permissionSource(); }