All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
For a full diff see 1.8.0...main
.
For a full diff see 1.7.0...1.8.0
.
- Required and used
doctrine/instantiator
directly to create new entities (#1381), by @localheinz
For a full diff see 1.6.0...1.7.0
.
- Allowed installation of
doctrine/orm:^3.0.0
(#1293), by @localheinz - Required
doctrine/orm:^2.14.0
(#1298), by @localheinz - Allowed installation of
doctrine/dbal:^4.0.0
(#1299), by @localheinz
For a full diff see 1.5.0...1.6.0
.
- Required
doctrine/orm:^2.9.0
(#1234), by @localheinz
- Removed dependency on
doctrine/annotations
(#1233), by @localheinz
For a full diff see 1.4.0...1.5.0
.
- Added support for PHP 8.3 (#1213), by @localheinz
- Dropped support for PHP 8.0 (#1109), by @localheinz
For a full diff see 1.3.0...1.4.0
.
- Allowed installation of
doctrine/annotations:^2.0.0
(#1000), by @localheinz
For a full diff see 1.2.0...1.3.0
.
- Required
fakerphp/faker:^1.20.0
(#947), by @localheinz - Allowed installation of
doctrine/persistence:^3.0.0
(#948), by @localheinz
For a full diff see 1.1.0...1.2.0
.
- Dropped support for PHP 7.4 (#922), by @localheinz
For a full diff see 1.0.0...1.1.0
.
- Allowed installation of
doctrine/collections:^2.0.0
(#912), by @OskarStark
For a full diff see 0.6.0...1.0.0
.
For a full diff see 0.5.0...0.6.0
.
- Allowed registering already instantiated entity definition providers (#702), by @localheinz
For a full diff see 0.4.0...0.5.0
.
- Allowed specifying field definition overrides when using
FieldDefinition::reference()
andFieldDefinition::references()
(#421), by @abenerd
- Dropped support for PHP 7.3 (#682), by @localheinz
For a full diff see 0.3.2...0.4.0
.
- Required at least
doctrine/annotations:^1.10.3
(#495), by @localheinz - Required at least
doctrine/collections:^1.6.5
(#496), by @localheinz - Required at least
doctrine/orm:^2.8.0
(#498), by @localheinz - Required at least
doctrine/dbal:^2.12.0
(#499), by @localheinz - Added support for PHP 8.0 (#481), by @localheinz
- Dropped support for PHP 7.2 (#493), by @localheinz
For a full diff see 0.3.1...0.3.2
.
- Started using
fakerphp/faker
instead offzaninotto/faker
(#459), by @localheinz
For a full diff see 0.3.0...0.3.1
.
- Actually implemented
WithoutOptionalStrategy
(#375), by @localheinz
For a full diff see 0.2.1...0.3.0
.
- Implemented a
WithOptionalStrategy
(#365), by @localheinz - Implemented a
WithoutOptionalStrategy
(#369), by @localheinz
- Moved resolution of
Count
toFixtureFactory
(#351), by @localheinz - Extracted
DefaultStrategy
for resolving field values and count (#353), by @localheinz - Replaced
FixtureFactory::persistAfterCreate()
andFixtureFactory::doNotPersistAfterCreate()
withFixtureFactory::persisting()
, a mutator that returns a persistingFixtureFactory
(#374), by @localheinz
For a full diff see 0.2.0...0.2.1
.
- Required
ergebnis/classy:^1.0.0
(#338), by @localheinz
For a full diff see 0.1.0...0.2.0
.
- Renamed
InvalidDefinition::fromClassNameAndException()
toInvalidDefinition::throwsExceptionDuringInstantiation()
(#300), by @localheinz - Renamed
Number
toCount
(#309), by @localheinz - Split
FixtureFactory::persistOnGet()
intoFixtureFactory::persistAfterCreate()
andFixtureFactory::doNotPersistAfterCreate()
(#311), by @localheinz - Merged
Definitions
intoFixtureFactory::load()
(#312), by @localheinz - Renamed
Definition
toEntityDefinitionProvider
(#314), by @localheinz
- Started throwing an
InvalidDefinition
exception when a definition is concrete but cannot be instantiated (#301), by @localheinz - Started throwing an
InvalidDefinition
exception when a definition cannot be autoloaded (#302), by @localheinz
- Removed
FixtureFactory::definitions()
(#321), by @localheinz
For a full diff see fa9c564...0.1.0
.
- Imported
breerly/factory-girl-php@0e6f1b6
(#1), by @localheinz - Imported
ergebnis/factory-girl-definition@23e57bc
(#6), by @localheinz - Allowed use of
Faker\Generator
in field definitions (#144), by @localheinz - Added
FieldDefinition::value()
which allows resolving a field definition to a constant value (#149), by @localheinz - Added
FieldDefinition::closure()
which allows resolving a field definition to the return value of a closure that is invoked with theFixtureFactory
(#155), by @localheinz - Allowed creation of optional field definitions (#167) and (#196), by @localheinz
- Allowed using field definitions as field overrides (#270), by @localheinz
- Allowed use of
Faker\Generator
in closure invoked after entity creation (#287), by @localheinz
- Used
Doctrine\ORM\EntityManagerInterface
instead ofDoctrine\ORM\EntityManager
in type and return type declarations (#24), by @localheinz - Marked all classes as
final
(#33), by @localheinz - Marked
EntityDef
as internal (#49), by @localheinz - Started throwing an
Exception\InvalidFieldNames
exception instead of a genericException
when fields are referenced that are not present in the corresponding entity (#87), by @localheinz - Renamed
EntityDef
toEntityDefinition
(#91), by @localheinz - Renamed
FieldDef
toFieldDefinition
(#92), by @localheinz - Turned
$configuration
parameter ofFixtureFactory::defineEntity()
into$afterCreate
, aClosure
that will be invoked after object construction (#101), by @localheinz - Started throwing an
Exception\InvalidCount
exception instead of a genericException
when an invalid number of entities are requested (#105), by @localheinz - Started throwing an
Exception\EntityDefinitionAlreadyRegistered
exception instead of a genericException
when an entity definition for a class name has already been registered (#106), by @localheinz - Added
$faker
parameter toDefinition\Definition::accept()
andDefinition\Definitions::registerWith()
, providing and requiring to pass in an instance ofFaker\Generator
(#117), by @localheinz - Started throwing an
Exception\ClassNotFound
exception instead of a genericException
when a class was not found (#125), by @localheinz - Added
@template
annotations to assist with static code analysis (#128), by @localheinz - Removed the fluent interface from
FixtureFactory::defineEntity()
(#131), by @localheinz - Extracted
FieldDefinition\Reference
(#157), by @localheinz - Extracted
FieldDefinition\References
(#159), by @localheinz - Extracted
FieldDefinition\Value
(#160), by @localheinz - Extracted
FieldDefinition\Closure
(#161), by @localheinz - Extracted
FieldDefinition\Sequence
(#164), by @localheinz - Introduced named constructors for field definitions and marked primary constructor as
private
(#188), by @localheinz - Renamed
FixtureFactory::get()
toFixtureFactory::create()
(#189), by @localheinz - Renamed
FixtureFactory::getList()
toFixtureFactory::createMultiple()
(#190), by @localheinz - Renamed
FixtureFactory::defineEntity()
toFixtureFactory::define()
(#197), by @localheinz - Extracted
FieldDefinition\Optional
(#260), by @localheinz - Extracted
Count
(#262), by @localheinz - Renamed
FixtureFactory::create()
toFixtureFactory::createOne()
(#263), by @localheinz - Renamed
FixtureFactory::createMultiple()
toFixtureFactory::createMany()
(#264), by @localheinz - Changed order of parameters for
FixtureFactory::createMany()
(#266), by @localheinz - Renamed
Count
toNumber\Exact
andInvalidCount
toInvalidNumber
(#273), by @localheinz
- Populated embeddables and disallowed referencing fields using dot notation (#79), by @localheinz
- Started throwing an
Exception\ClassMetadataNotFound
exception instead of bubbling upDoctrine\ORM\Mapping\MappingException
when a class is not an entity (#126), by @localheinz
- Removed possibility to set the entity namespace on the
FixtureFactory
(#3), by @localheinz - Removed
Provider\Doctrine\DBAL\Types\StatusArrayType
(#13), by @localheinz - Removed
Doctrine\FieldDef::past()
,Doctrine\FieldDef::future()
, andDoctrine\DateIntervalHelper
(#14), by @localheinz - Removed
Doctrine\ORM\Repository
along with locking capabilities (#15), by @localheinz - Removed
Doctrine\ORM\QueryBuilder
(#16), by @localheinz - Removed
Definition\AbstractDefinition
(#114 and #116), by @localheinz - Removed
Definition\FakerAwareDefinition
(#120 and #123), by @localheinz - Removed
FixtureFactory::provideWith()
(#122), by @localheinz - Removed
FixtureFactory::getAsSingleton()
,FixtureFactory::setSingleton()
, andFixtureFactory::unsetSingleton()
(#124), by @localheinz - Removed
callable
support for field definitions (#133) and (#185), by @localheinz - Removed support for
string
sequences that do not contain a%d
placeholder (#185), by @localheinz - Removed
FieldDefinition::optionalReferences()
andFieldDefinition\References::optional()
(#259), by @localheinz - Removed parameter
$faker
fromDefinition::registerWith()
(#286), by @localheinz