Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions docs/book/v7/installation/doctrine-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,20 @@ If everything ran correctly, you will get this confirmation.

> The version number `YYYYMMDDHHMMSS` is the timestamp of the migration.

### Important Security Concern

The following section deals with fixtures which create the first user and role records in the database.
We recommend you **edit the names and passwords** found in the files below to prevent unauthorized users from logging into your application:

- `src/Core/src/App/Fixture/UserLoader.php`.
- `src/Core/src/App/Fixture/AdminLoader.php`.

Look for these methods and change their current parameters:

- `setIdentity` for the **username**,
- `usePassword` for the **password**,
- and optionally `setFirstName` and `setLastName`.

### Executing Fixtures

Fixtures are used to seed the database with initial values.
Expand All @@ -194,20 +208,6 @@ This basically creates the first records in the database.
> You can edit the initial records if your application demands it, even after running the fixtures.
> For example, you can edit the user roles or the initial users.

> **Important**
>
> Edit the names and passwords of the initial users to prevent unauthorized users from logging into your application.
> Make sure to do so in these files:
>
> - `src/Core/src/App/Fixture/UserLoader.php`.
> - `src/Core/src/App/Fixture/AdminLoader.php`.
>
> Check for these methods and change their default parameters:
>
> - `setIdentity`.
> - `usePassword`.
> - And optionally `setFirstName` and `setLastName`.

To execute fixtures, run:

```shell
Expand Down