Skip to content

Latest commit

History

History
387 lines (289 loc) 路 18.4 KB

CHANGELOG.md

File metadata and controls

387 lines (289 loc) 路 18.4 KB

Changelog

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.

Unreleased

For a full diff see 1.8.0...main.

For a full diff see 1.7.0...1.8.0.

Changed

  • Required and used doctrine/instantiator directly to create new entities (#1381), by @localheinz

For a full diff see 1.6.0...1.7.0.

Changed

For a full diff see 1.5.0...1.6.0.

Changed

Removed

For a full diff see 1.4.0...1.5.0.

Added

Changed

For a full diff see 1.3.0...1.4.0.

Changed

For a full diff see 1.2.0...1.3.0.

Changed

For a full diff see 1.1.0...1.2.0.

Changed

For a full diff see 1.0.0...1.1.0.

Changed

  • 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.

Added

  • Allowed registering already instantiated entity definition providers (#702), by @localheinz

For a full diff see 0.4.0...0.5.0.

Added

  • Allowed specifying field definition overrides when using FieldDefinition::reference() and FieldDefinition::references() (#421), by @abenerd

Changed

For a full diff see 0.3.2...0.4.0.

Changed

Fixed

For a full diff see 0.3.1...0.3.2.

Fixed

  • Started using fakerphp/faker instead of fzaninotto/faker (#459), by @localheinz

For a full diff see 0.3.0...0.3.1.

Fixed

For a full diff see 0.2.1...0.3.0.

Added

Changed

  • Moved resolution of Count to FixtureFactory (#351), by @localheinz
  • Extracted DefaultStrategy for resolving field values and count (#353), by @localheinz
  • Replaced FixtureFactory::persistAfterCreate() and FixtureFactory::doNotPersistAfterCreate() with FixtureFactory::persisting(), a mutator that returns a persisting FixtureFactory (#374), by @localheinz

For a full diff see 0.2.0...0.2.1.

Changed

For a full diff see 0.1.0...0.2.0.

Changed

  • Renamed InvalidDefinition::fromClassNameAndException() to InvalidDefinition::throwsExceptionDuringInstantiation() (#300), by @localheinz
  • Renamed Number to Count (#309), by @localheinz
  • Split FixtureFactory::persistOnGet() into FixtureFactory::persistAfterCreate() and FixtureFactory::doNotPersistAfterCreate() (#311), by @localheinz
  • Merged Definitions into FixtureFactory::load() (#312), by @localheinz
  • Renamed Definition to EntityDefinitionProvider (#314), by @localheinz

Fixed

  • 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

For a full diff see fa9c564...0.1.0.

Added

Changed

  • Used Doctrine\ORM\EntityManagerInterface instead of Doctrine\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 generic Exception when fields are referenced that are not present in the corresponding entity (#87), by @localheinz
  • Renamed EntityDef to EntityDefinition (#91), by @localheinz
  • Renamed FieldDef to FieldDefinition (#92), by @localheinz
  • Turned $configuration parameter of FixtureFactory::defineEntity() into $afterCreate, a Closure that will be invoked after object construction (#101), by @localheinz
  • Started throwing an Exception\InvalidCount exception instead of a generic Exception when an invalid number of entities are requested (#105), by @localheinz
  • Started throwing an Exception\EntityDefinitionAlreadyRegistered exception instead of a generic Exception when an entity definition for a class name has already been registered (#106), by @localheinz
  • Added $faker parameter to Definition\Definition::accept() and Definition\Definitions::registerWith(), providing and requiring to pass in an instance of Faker\Generator (#117), by @localheinz
  • Started throwing an Exception\ClassNotFound exception instead of a generic Exception 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() to FixtureFactory::create() (#189), by @localheinz
  • Renamed FixtureFactory::getList() to FixtureFactory::createMultiple() (#190), by @localheinz
  • Renamed FixtureFactory::defineEntity() to FixtureFactory::define() (#197), by @localheinz
  • Extracted FieldDefinition\Optional (#260), by @localheinz
  • Extracted Count (#262), by @localheinz
  • Renamed FixtureFactory::create() to FixtureFactory::createOne() (#263), by @localheinz
  • Renamed FixtureFactory::createMultiple() to FixtureFactory::createMany() (#264), by @localheinz
  • Changed order of parameters for FixtureFactory::createMany() (#266), by @localheinz
  • Renamed Count to Number\Exact and InvalidCount to InvalidNumber (#273), by @localheinz

Fixed

  • Populated embeddables and disallowed referencing fields using dot notation (#79), by @localheinz
  • Started throwing an Exception\ClassMetadataNotFound exception instead of bubbling up Doctrine\ORM\Mapping\MappingException when a class is not an entity (#126), by @localheinz

Removed

  • 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(), and Doctrine\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(), and FixtureFactory::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() and FieldDefinition\References::optional() (#259), by @localheinz
  • Removed parameter $faker from Definition::registerWith() (#286), by @localheinz