https://github.com/devnix/doctrine-mapping-bug
https://github.com/devnix/doctrine-mapping-bug
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devnix/doctrine-mapping-bug
- Owner: devnix
- Created: 2022-07-12T15:59:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-13T18:34:56.000Z (over 3 years ago)
- Last Synced: 2025-02-10T04:43:15.716Z (about 1 year ago)
- Language: PHP
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Configuration
```bash
docker-compose up -d
```
```bash
docker-compose exec phpunit bin/console doctrine:database:create
docker-compose exec phpunit bin/console doctrine:migrations:migrate
```
# Run test suite
```bash
docker-compose exec phpunit bin/phpunit --testdox
```
See as test passes. Now go to [src/Entity/User.php]() and change the
constant `App\Entity\User::IMMUTABLE_CLASS` from `false` to `true`,
and see how the check `it_should_not_login_if_credentials_are_wrong`,
which updates an existing user, but using an inmutable pattern for
the `User` entity.