icanhazstring / foundry-bundle
额外的配置和编译器传递,以避免在使用 zenstruck/foundry 与 symfony 组件时遇到的一些常见问题
0.3.0
2021-08-26 06:55 UTC
Requires
- symfony/config: ^5.2
- symfony/dependency-injection: ^5.2
- symfony/http-kernel: ^5.2
- zenstruck/foundry: ^1.11
Requires (Dev)
- roave/security-advisories: dev-latest
- tseho/doctrine-assigned-identity: ^0.1.0
Suggests
- tseho/doctrine-assigned-identity: This package allows you manually assign IDs to a Doctrine entity, even when the entity uses the stategies AUTO, SEQUENCE, IDENTITY or UUID
README
提供 zenstruck/foundry
以及一些额外的配置和编译器传递。以避免在使用 zenstruck/foundry
与 symfony 组件时遇到的一些常见问题。
安装
$ composer req --dev icanhazstring/foundry-bundle
配置
通过将此捆绑包添加到项目中 config/bundles.php 文件中注册的捆绑包列表中来启用捆绑包
return [ // ... icanhazstring\FoundryBundle\FoundryBundle::class => ['test' => true], ];
建议
-
https://github.com/tseho/doctrine-assigned-identity (
tseho/doctrine-assigned-identity
)此包允许您手动为 Doctrine 实体分配 ID,即使实体使用 AUTO、SEQUENCE、IDENTITY 或 UUID 策略。