Kevin Bond
Kevin Bond
Unfortunately, no, Doctrine doesn't allow this out of the box. You can see some of the complexities required [here](https://stackoverflow.com/questions/9686888/how-to-truncate-a-table-using-doctrine-2).
> Short Question how to use doctrine migrations in this project? I believe I just used symfony/demo to create the same entities, created the migration and copy/pasted the generated code...
Let's leave _asking the user_ for another PR. This at least lays the foundation for that.
Don't worry about psalm, it's failing on the main branch as well. _Edit: A rebase should fix the problem._
@wouterj, what do you think about this? There is now no longer a way to access story state items without _loading the story_. Do you think this is a problem?
> What does this change solve? This PR is purely a quality of life improvement: ```diff - MyStory::load()->get('countries'); + MyStory::get('countries'); ``` > Having a $story->get('countries') method with proper PHP declaration...
I do like the idea but there are some nuances we need to think about. When calling your code that actually tests the listeners, do you do anything to put...
> I thought about something else, the function could have an optional argument, "$eventTypeName": Sure, makes sense. > or it is ok for you to let me make a pull...
Would that mean you couldn't use stories/factories with services injected or is there an avenue to support this?
Interesting, could `randomOrNew()` be an option? _Edit: hmm, maybe not, the return type would be `Factory|Proxy` which isn't great._ Think I'm leaning towards **A** but trying to think of a...