/**
  * @param BaseObject $fromObject
  * @param BaseObject $toObject
  * @return bool true if should continue to the next consumer
  */
 public function objectCopied(BaseObject $fromObject, BaseObject $toObject)
 {
     if ($fromObject instanceof Partner) {
         $this->copyMetadataProfiles($fromObject->getId(), $toObject->getId());
     }
     if ($fromObject instanceof entry) {
         $this->copyMetadata(Metadata::TYPE_ENTRY, $fromObject, $toObject);
     }
     if ($fromObject instanceof MetadataProfile) {
         kObjectCopyHandler::mapIds('MetadataProfile', $fromObject->getId(), $toObject->getId());
     }
     return true;
 }
 public function objectCopied(BaseObject $fromObject, BaseObject $toObject)
 {
     if ($fromObject instanceof Partner) {
         $this->copyMetadataProfiles($fromObject, $toObject);
         $this->copyMetadata(MetadataObjectType::PARTNER, $fromObject, $toObject);
     }
     if ($fromObject instanceof entry) {
         $this->copyMetadata(MetadataObjectType::ENTRY, $fromObject, $toObject);
     }
     if ($fromObject instanceof category) {
         $this->copyMetadata(MetadataObjectType::CATEGORY, $fromObject, $toObject);
     }
     if ($fromObject instanceof kuser) {
         $this->copyMetadata(MetadataObjectType::USER, $fromObject, $toObject);
     }
     if ($fromObject instanceof MetadataProfile) {
         kObjectCopyHandler::mapIds('MetadataProfile', $fromObject->getId(), $toObject->getId());
     }
     return true;
 }