forked from GNUsocial/gnu-social
updateWithKeys now understands multi-column keys
and automatically identifies _which_ columns are the right ones, so for example 'uri' primary keys don't need to be explicitly set
This commit is contained in:
@@ -1853,7 +1853,7 @@ class Ostatus_profile extends Managed_DataObject
|
||||
}
|
||||
|
||||
common_debug('URIFIX Updating Ostatus_profile URI for '.$orig->uri.' to '.$this->uri);
|
||||
$this->updateWithKeys($orig, 'uri'); // 'uri' is the primary key column
|
||||
$this->updateWithKeys($orig); // Will use the PID column(s) in the 'UPDATE ... WHERE [unique selector]'
|
||||
|
||||
common_debug('URIFIX Subscribing/renewing feedsub for Ostatus_profile '.$this->uri);
|
||||
$this->subscribe();
|
||||
|
Reference in New Issue
Block a user