/** * @param AbstractTable $table * @param RecordSchema $record */ public function __construct(AbstractTable $table, RecordSchema $record) { $altered = []; foreach ($table->alteredColumns() as $column) { $altered[] = $column->getName(); } parent::__construct(\Spiral\interpolate('Passive table "{database}"."{table}" ({record}), were altered, columns: {columns}', ['database' => $record->getDatabase(), 'table' => $table->getName(), 'record' => $record, 'columns' => join(', ', $altered)])); }
public function __construct($schemaName, $schemaClass) { parent::__construct("Schema '{$schemaName}' could not be created as '{$schemaClass}' is not a SolutionSchema object"); }
public function __construct($schemaName) { parent::__construct("The schema '{$schemaName}' could not be found.'"); }