issues
search
zenstruck
/
foundry
A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.
https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html
MIT License
609
stars
63
forks
source link
1.x bc layer
#512
Closed
nikophil
closed
7 months ago
nikophil
commented
8 months ago
[ ] Bundle configuration
[ ] Object Instantiator split into Instantiator/Mapper
[x] Zenstruck\Foundry\Factory
[x] withAttributes() -> with()
[x] __construct() removed
[x] Zenstruck\Foundry\ModelFactory -> Zenstruck\Foundry\Persistence\PersistentProxyObjectFactory
[x] protected function getDefaults(): array -> protected function defaults(): array|callable
[x] protected static function getClass(): string -> public static function class(): string
[x] protected function initialize() -> protected function initialize(): static
[x] addState() -> with()
[x] Zenstruck\Foundry\Proxy -> Zenstruck\Foundry\Persistence\Proxy
[x] no longer implements \Stringable
[x] isPersisted() removed
[x] object() -> _real()
[x] save() -> _save()
[x] remove() -> _delete()
[x] refresh() -> _refresh()
[x] forceSet() -> _set()
[x] forceSetAll() removed
[x] forceGet() -> _get()
[x] repository() -> _repository()
[x] enableAutoRefresh() -> _enableAutoRefresh()
[x] disableAutoRefresh() -> _disableAutoRefresh()
[x] withoutAutoRefresh() -> _withoutAutoRefresh()
[x] assertPersisted() removed
[x] assertNotPersisted() removed
[ ] final objects cannot be proxified
[ ] Zenstruck\Foundry\anonymous() -> Zenstruck\Foundry\factory() (factory() is currently deprecated in 1.x...)
[x] Zenstruck\Foundry\create() -> Zenstruck\Foundry\Persistence\persist()
[x] Zenstruck\Foundry\create_many() removed
[x] Zenstruck\Foundry\instantiate() -> Zenstruck\Foundry\object()
[x] Zenstruck\Foundry\instantiate_many() removed
[x] Zenstruck\Foundry\repository() -> Zenstruck\Foundry\Persistence\repository()
[ ] Zenstruck\Foundry\Test\TestState -> Zenstruck\Foundry\Test\UnitTestConfig (better name?)
[x] Zenstruck\Foundry\Factory::delayFlush() -> Zenstruck\Foundry\Persistence\flush_after()
[x] Zenstruck\Foundry\Test\Factories
[x] disablePersist() -> Zenstruck\Foundry\Persistence\disable_persisting()
[x] enablePersist() -> Zenstruck\Foundry\Persistence\enable_persisting()
[ ] Zenstruck\Foundry\Instantiator to Zenstruck\Foundry\Object\Instantiator
[x] new Instantiator() => Instantiator::withConstructor()
[x] alwaysForceProperties() => alwaysForce() + parameters are spread
[x] allowExtraAttributes() => allowExtra() + parameters are spread
[x]
Instantiator::withConstructor()
will throw an exception if class's constructor is not public
[x] Zenstruck\Foundry\RepositoryProxy to Zenstruck\Foundry\Persistence\RepositoryDecorator
[x] Zenstruck\Foundry\RepositoryAssertions to Zenstruck\Foundry\Persistence\RepositoryAssertions
Instantiator::withConstructor()
will throw an exception if class's constructor is not public