Synchronizes the model with the database by fetching the currently stored values.
Description
If the model contains unsynchronized changes, these will be overridden. This method basically allows to reset the model to the values stored in the database.
See also
Return
(true|WP_Error) True on success, or an error object on failure.
Source
File: src/db-objects/submissions/submission.php
public function sync_downstream() { $result = parent::sync_downstream(); if ( is_wp_error( $result ) ) { return $result; } $this->values = null; return $result; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |