h4cc / h4cc/AliceFixturesBundle

Can't reference entities' ID inside a Fixtures Set

Open
#55 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
74
Forks
24
PR merge metrics
No merged PRs in 30d

Description

I'm trying do achieve the following tricks.

[From the Alice 1.x documentations](https://github.com/nelmio/alice/tree/1.x#references):

> You can reference entities' ID but you will then have to split fixtures in multiple files (this is because objects are persisted at the end of each file processing) :

``` yaml
# fixture_user.yml
Nelmio\Entity\User:
# ...
```

``` yaml
# fixture_group.yml
Nelmio\Entity\Group:
group1:
name: Admins
owner: @user1->id
```

---

Maybe there is something I miss but it look like objects are not persisted at the end of each file when I use Fixtures Set. Is it true or what did I miss ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.