Skip to content

Commit 8be55bd

Browse files
committed
Fixing generation of SchemaAnalyzer from db connection
1 parent 66c58e0 commit 8be55bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mouf/Database/MagicQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private function magicJoinOnOneQuery(MagicJoinSelect $magicJoinSelect) {
226226
*/
227227
private function getSchemaAnalyzer() {
228228
if ($this->schemaAnalyzer === null) {
229-
if (!$this->schemaAnalyzer) {
229+
if (!$this->connection) {
230230
throw new MagicQueryMissingConnectionException('In order to use MagicJoin, you need to configure a DBAL connection.');
231231
}
232232

0 commit comments

Comments
 (0)