Skip to content

Commit 61bc972

Browse files
committed
fix doctrine schema manager getter
1 parent 4a491c4 commit 61bc972

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Illuminate/Database/Connection.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,13 @@ public function getDoctrineColumn($table, $column)
822822
*/
823823
public function getDoctrineSchemaManager()
824824
{
825-
return $this->getDoctrineDriver()->getSchemaManager($this->getDoctrineConnection());
825+
$connection = $this->getDoctrineConnection();
826+
827+
// Doctrine v2 expects one parameter while v3 expects two. 2nd will be ignored on v2...
828+
return $this->getDoctrineDriver()->getSchemaManager(
829+
$connection,
830+
$connection->getDatabasePlatform()
831+
);
826832
}
827833

828834
/**

0 commit comments

Comments
 (0)