GeneratedColumnValueException
class GeneratedColumnValueException extends DatabaseException (View source)
Exception for errors related to setting values on a generated column
Properties
protected | string | $sql | The SQL that generated this error |
from DatabaseException |
protected | array | $parameters | The parameters given for this query, if any |
from DatabaseException |
Methods
public
__construct(string $message = '', string|null $column = null, string|null $table = null, string $sql = null, array $parameters = [])
Constructs the database exception
Details
string
getSQL()
Returns the SQL that generated this error
array
getParameters()
The parameters given for this query, if any
__construct(string $message = '', string|null $column = null, string|null $table = null, string $sql = null, array $parameters = [])
Constructs the database exception
string|null
getColumn()
Get the name of the column which the error is for
string|null
getTable()
Get the name of the table which the error is for