Skip to content

Commit

Permalink
Docs: Set PDO attributes after variable has been assigned (#2334)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz authored Dec 9, 2024
1 parent 8a75045 commit 1b64777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,9 @@ using the Manager class :
$manager = new Manager($config, new StringInput(' '), new NullOutput());
$manager->migrate('test');
$manager->seed('test');
$this->pdo = $pdo;
// You can change default fetch mode after the seeding
$this->pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
$this->pdo = $pdo;
}
}

0 comments on commit 1b64777

Please sign in to comment.