Tribe__Promise::save()
Overrides the base method to allow building promises on empty objects without actually writing to the database.
A fake queue id is set for compatibility reasons.
Return
(Tribe__Process__Queue) This object.
Source
File: src/Tribe/Promise.php
public function save() {
if ( empty( $this->data ) ) {
$this->id = uniqid( 'promise_', true );
return $this;
}
return parent::save();
}
Changelog
| Version | Description |
|---|---|
| 4.9.5 | Introduced. |