Diff #4 - trunk/docs/classes/models/emailqueue/wherefirst.md Repo: apex/webapp Revision: 4 Filename: trunk/docs/classes/models/emailqueue/wherefirst.md Size: 773 bytes Updated By: apex Date Updated: January 20, 2025 at 08:20 DiffFull Code Diff Index: wherefirst.md --- wherefirst.md (nonexistent) +++ wherefirst.md (revision 4) @@ -0,0 +1,39 @@ + +# BaseModel::whereFirst + +### Usage + +> ?static BaseModel::whereFirst(string $where_sql, [ ... $args ]) + +### Description + +> Get a model instance of the first record found for a given where clause. + +### Parameters + +Parameter | Required | Type | Description +------------- |------------- |------------- |------------- +where_sql | Yes | string | +args | No | ... | + +### Return +> ?static +### See Also + +* all() +* count() +* delete() +* deleteMany() +* getChildren() +* insert() +* insertFromForm() +* insertOrUpdate() +* purge() +* save() +* toArray() +* toFormattedArray() +* update() +* where() +* whereId() + + Full Code BaseModel::whereFirst Usage ?static BaseModel::whereFirst(string $where_sql, [ ... $args ]) Description Get a model instance of the first record found for a given where clause. Parameters Parameter Required Type Description where_sql Yes string args No ... Return ?static See Also all() count() delete() deleteMany() getChildren() insert() insertFromForm() insertOrUpdate() purge() save() toArray() toFormattedArray() update() where() whereId()