File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,7 @@ protected function getTypeOverride($type)
463
463
*/
464
464
public function getPropertiesFromTable ($ model )
465
465
{
466
+ $ database = $ model ->getConnection ()->getName ();
466
467
$ table = $ model ->getConnection ()->getTablePrefix () . $ model ->getTable ();
467
468
$ schema = $ model ->getConnection ()->getDoctrineSchemaManager ();
468
469
$ databasePlatform = $ schema ->getDatabasePlatform ();
@@ -482,11 +483,6 @@ public function getPropertiesFromTable($model)
482
483
$ databasePlatform ->registerDoctrineTypeMapping ($ yourTypeName , $ doctrineTypeName );
483
484
}
484
485
485
- $ database = null ;
486
- if (strpos ($ table , '. ' )) {
487
- [$ database , $ table ] = explode ('. ' , $ table );
488
- }
489
-
490
486
$ columns = $ schema ->listTableColumns ($ table , $ database );
491
487
492
488
if (!$ columns ) {
You can’t perform that action at this time.
0 commit comments