Skip to content

Commit 7b1f1e1

Browse files
authored
Update Model.php
1 parent 7a49e6e commit 7b1f1e1

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

system/Model.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,14 @@ public function first()
493493
//--------------------------------------------------------------------
494494

495495
/**
496-
* Captures the builder's set() method so that we can validate the
497-
* data here. This allows it to be used with any of the other
498-
* builder methods and still get validated data, like replace.
499496
*
500-
* @param mixed $key
501-
* @param string|int $value
502-
* @param boolean|null $escape
497+
* Allows key/value pairs to be set for insert(), update() or replace().
503498
*
504-
* @return $this
499+
* @param mixed $key Field name, or an array of field/value pairs
500+
* @param string $value Field value, if $key is a single field
501+
* @param boolean $escape Whether to escape values and identifiers
502+
*
503+
* @return BaseBuilder
505504
*/
506505
public function set($key, ?string $value = '', bool $escape = null)
507506
{

0 commit comments

Comments
 (0)