X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FPost%2FUser.php;h=0da3062a0ba33d07e437728636f0b96acd8d7119;hb=6dbbd081795fa1c8fe57db2248ac162efeeada88;hp=840d020d6eeb42c31a817c817a4a5fedd4525ea9;hpb=3fe7d035d4a907b175e1cbb31cd34d6e58cfe8ae;p=friendica.git diff --git a/src/Model/Post/User.php b/src/Model/Post/User.php index 840d020d6e..0da3062a0b 100644 --- a/src/Model/Post/User.php +++ b/src/Model/Post/User.php @@ -1,6 +1,6 @@ $uri_id, 'uid' => $uid], true); + return DBA::update('post-user', $fields, ['uri-id' => $uri_id, 'uid' => $uid], $insert_if_missing ? true : []); + } + + /** + * Delete a row from the post-user table + * + * @param array $conditions Field condition(s) + * @param array $options + * - cascade: If true we delete records in other tables that depend on the one we're deleting through + * relations (default: true) + * + * @return boolean was the delete successful? + * @throws \Exception + */ + public static function delete(array $conditions, array $options = []) + { + return DBA::delete('post-user', $conditions, $options); } }