classColumnNotFoundException
final class ColumnNotFoundException
extends SimulationException
Exception thrown when a referenced column does not exist.
Methods§
public function __construct(string $sql, string $tableName, string $columnName)Parameters
$sql | string | The SQL statement. |
$tableName | string | The name of the table. |
$columnName | string | The name of the column that was not found. |
Calls 2
- static-call SimulationException::__construct() line 34
- function-call
sprintfline 34
public function getSql(): stringGet the SQL statement.
Returns
stringTest cases 1
public function getTableName(): stringGet the name of the table.
Returns
stringTest cases 1
public function getColumnName(): stringGet the name of the column that was not found.
Returns
stringTest cases 1
Private surface 3§
Implementation details, listed for orientation only.
private string $sqlprivate string $tableNameprivate string $columnNameTest cases 17§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 13
ExecutionCheck::verifycallsDropColumnResolverTest::testResolveAlterDropColumnRejectsMissingColumncallsAlterTableMutationTest::testApplyChangeColumnNotFoundThrowscallsAlterTableMutationTest::testApplyChangeColumnThrowsExceptionWhenColumnNotFoundcallsAlterTableMutationTest::testApplyDropColumnThrowsExceptionWhenColumnNotFoundcallsAlterTableMutationTest::testApplyModifyColumnThrowsExceptionWhenColumnNotFoundcallsAlterTableMutationTest::testApplyRenameColumnNotFoundThrowsExceptioncallsAlterTableMutationTest::testApplyRenameColumnThrowsExceptionWhenColumnNotFoundcallsAlterTableMutationTest::testChangeColumnNotFoundThrowscallsAlterTableMutationTest::testDropColumnNotFoundThrowscallsAlterTableMutationTest::testModifyColumnNotFoundThrowscallsAlterTableMutationTest::testRenameColumnNotFoundThrowscallsSqliteMutationResolverTest::testAlterRenameColumnRejectsMissingSourcecalls
Relations§
Instantiated in 6
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Table\Alter\ColumnAlteration::applyDropColumn() packages/ztd-query-mysql/src/Shadow/Mutation/Table/Alter/ColumnAlteration.php:66
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Table\Alter\ColumnAlteration::applyModifyColumn() packages/ztd-query-mysql/src/Shadow/Mutation/Table/Alter/ColumnAlteration.php:102
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Table\Alter\ColumnAlteration::applyChangeColumn() packages/ztd-query-mysql/src/Shadow/Mutation/Table/Alter/ColumnAlteration.php:129
- new ZtdQuery\Platform\MySql\Shadow\Mutation\Table\Alter\ColumnAlteration::applyRenameColumn() packages/ztd-query-mysql/src/Shadow/Mutation/Table/Alter/ColumnAlteration.php:171
- new ZtdQuery\Platform\Sqlite\Shadow\Mutation\Table\Alter\DropColumnResolver::resolveAlterDropColumn() packages/ztd-query-sqlite/src/Shadow/Mutation/Table/Alter/DropColumnResolver.php:44
- new ZtdQuery\Platform\Sqlite\Shadow\Mutation\Table\Alter\RenameResolver::resolveAlterRenameColumn() packages/ztd-query-sqlite/src/Shadow/Mutation/Table/Alter/RenameResolver.php:69