Skip to content

Commit

Permalink
Revert "Turn persist_once on by default"
Browse files Browse the repository at this point in the history
This reverts commit 6c5da4d.
  • Loading branch information
Seldaek committed Aug 1, 2013
1 parent 2251ec9 commit 64b4efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ with the following keys:
to null to disable (defaults to 1)
- logger: a callable or Psr\Log\LoggerInterface object that will receive progress
information during the loading of the fixtures
- persist_once: if set to false, objects are persisted after every file is parsed,
by default everything is persisted once at the end
- persist_once: only persist objects once if multiple files are passed, by default
objects are persisted after each file

### Detailed Usage ###

Expand Down
4 changes: 2 additions & 2 deletions src/Nelmio/Alice/Fixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct($container, array $defaultOptions = array(), array $
'providers' => array(),
'seed' => 1,
'logger' => null,
'persist_once' => true,
'persist_once' => false,
);
$this->defaultOptions = array_merge($defaults, $defaultOptions);
$this->processors = $processors;
Expand All @@ -47,7 +47,7 @@ public function __construct($container, array $defaultOptions = array(), array $
* - seed: a seed to make sure faker generates data consistently across
* runs, set to null to disable
* - logger: a callable or Psr\Log\LoggerInterface object that will receive progress information
* - persist_once: if set to false, objects are persisted after every file is parsed and not once at the end
* - persist_once: only persist objects once if multiple files are passsed
* @param array $processors optional array of ProcessorInterface instances
*/
public static function load($files, $container, array $options = array(), array $processors = array())
Expand Down

0 comments on commit 64b4efc

Please sign in to comment.