Suggestion: `loadFixtures()`: Change the default for `append` to false

Open
#38 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
database

Research direction

Start by locating the implementation and tests for $I->loadFixtures() in the module. Compare its current append default with the documented purge behavior, then determine how changing the default affects existing usage and what tests should define the new behavior.

Written by the indexing model from the issue text.

Description

The default mode when loading fixtures is to purge: https://symfony.com/bundles/DoctrineFixturesBundle/current/index.html#loading-fixtures

By default the load command purges the database

But with $I->loadFixtures(), the default is to append. I think this is confusing and should be changed. However, I don't see any easy upgrade path... ;-)

Dominant language
PHP
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/module-doctrine

All issues in Codeception/module-doctrine

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.