Skip to content

Commit c7f51c8

Browse files
committed
Set PDO attributes after variable has been assigned
1 parent 8a75045 commit c7f51c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ using the Manager class :
403403
$manager = new Manager($config, new StringInput(' '), new NullOutput());
404404
$manager->migrate('test');
405405
$manager->seed('test');
406+
$this->pdo = $pdo;
406407
// You can change default fetch mode after the seeding
407408
$this->pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
408-
$this->pdo = $pdo;
409409
}
410410
411411
}

0 commit comments

Comments
 (0)