$_field
$_field : string|\Cake\Database\ExpressionInterface
The field name or expression to be used in the left hand side of the operator
An expression object that represents a SQL BETWEEN snippet
$_field : string|\Cake\Database\ExpressionInterface
The field name or expression to be used in the left hand side of the operator
setField(string|\Cake\Database\ExpressionInterface $field) : void
Sets the field name
string|\Cake\Database\ExpressionInterface | $field | The field to compare with. |
getField() : string|\Cake\Database\ExpressionInterface
Returns the field name
__construct(string|\Cake\Database\ExpressionInterface $field, mixed $from, mixed $to, string|null $type = null)
Constructor
string|\Cake\Database\ExpressionInterface | $field | The field name to compare for values in between the range. |
mixed | $from | The initial value of the range. |
mixed | $to | The ending value in the comparison range. |
string|null | $type | The data type name to bind the values with. |
sql(\Cake\Database\ValueBinder $generator) : string
Converts the expression to its string representation
\Cake\Database\ValueBinder | $generator | Placeholder generator object |
_castToExpression(mixed $value, string $type) : mixed
Conditionally converts the passed value to an ExpressionInterface object if the type class implements the ExpressionTypeInterface. Otherwise, returns the value unmodified.
mixed | $value | The value to converto to ExpressionInterface |
string | $type | The type name |
_bindValue(mixed $value, \Cake\Database\ValueBinder $generator, string $type) : string
Registers a value in the placeholder generator and returns the generated placeholder
mixed | $value | The value to bind |
\Cake\Database\ValueBinder | $generator | The value binder to use |
string | $type | The type of $value |
generated placeholder
Loading…