mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Merge pull request #261 from rchavik/misc
display model and field that is causing schema generate to fail
This commit is contained in:
commit
714e2812bc
1 changed files with 1 additions and 1 deletions
|
@ -590,7 +590,7 @@ class CakeSchema extends Object {
|
||||||
$value['key'] = 'primary';
|
$value['key'] = 'primary';
|
||||||
}
|
}
|
||||||
if (!isset($db->columns[$value['type']])) {
|
if (!isset($db->columns[$value['type']])) {
|
||||||
trigger_error(__d('cake_dev', 'Schema generation error: invalid column type %s does not exist in DBO', $value['type']), E_USER_NOTICE);
|
trigger_error(__d('cake_dev', 'Schema generation error: invalid column type %s for %s.%s does not exist in DBO', $value['type'], $Obj->name, $name), E_USER_NOTICE);
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
$defaultCol = $db->columns[$value['type']];
|
$defaultCol = $db->columns[$value['type']];
|
||||||
|
|
Loading…
Add table
Reference in a new issue