Diff #4 - trunk/docs/classes/models/emailnotification/insertorupdate.md Repo: apex/webapp Revision: 4 Filename: trunk/docs/classes/models/emailnotification/insertorupdate.md Size: 782 bytes Updated By: apex Date Updated: January 20, 2025 at 08:20 DiffFull Code Diff Index: insertorupdate.md --- insertorupdate.md (nonexistent) +++ insertorupdate.md (revision 4) @@ -0,0 +1,39 @@ + +# BaseModel::insertOrUpdate + +### Usage + +> ?static BaseModel::insertOrUpdate(array $criteria, array $values) + +### Description + +> Insert or update a record within the database table assigned to the model class. + +### Parameters + +Parameter | Required | Type | Description +------------- |------------- |------------- |------------- +criteria | Yes | array | +values | Yes | array | + +### Return +> ?static +### See Also + +* all() +* count() +* delete() +* deleteMany() +* getChildren() +* insert() +* insertFromForm() +* purge() +* save() +* toArray() +* toFormattedArray() +* update() +* where() +* whereFirst() +* whereId() + + Full Code BaseModel::insertOrUpdate Usage ?static BaseModel::insertOrUpdate(array $criteria, array $values) Description Insert or update a record within the database table assigned to the model class. Parameters Parameter Required Type Description criteria Yes array values Yes array Return ?static See Also all() count() delete() deleteMany() getChildren() insert() insertFromForm() purge() save() toArray() toFormattedArray() update() where() whereFirst() whereId()