Releases: formal-php/orm
Releases · formal-php/orm
3.2.0
3.1.1
Added
Formal\ORM\Definition\Type\PointInTimeType::new()
Deprecated
Formal\ORM\Definition\Type\PointInTimeType::of()
as it uses a non standard string format. Use::new()
instead, but don't forget to migrate your data.
Fixed
- Psalm was complaining of a missing argument when using
PointInTimeType::of()
3.1.0
3.0.0
Added
Formal\ORM\Adapter\Repository::removeAll()
Formal\ORM\Specification\Child\Enum
Changed
- Requires
innmind/specification:~4.0
- Requires
formal/access-layer:~4.0
Removed
Formal\ORM\Adapter\Repository\MassRemoval
, its method has been merged intoFormal\ORM\Adapter\Repository
Fixed
- Ability to remove with a condition on an entity property
2.2.0
Added
Formal\ORM\Adapter\Repository\MassRemoval
- You can match aggregates on optionals via
Formal\ORM\Specification\Just
Formal\ORM\Definition\Type\Support
Changed
- You can now pass a
Specification
toRepository::remove()
to remove multiple aggregates at once - When a
Set
is modified in an aggregate but the resultingSet
contains the same values the orm no longer re-persist the whole collection - The
Contains
attribute now enforce to only be used on properties
2.1.0
2.0.2
2.0.1
2.0.0
Added
- You can match aggregates on collections via
Formal\ORM\Specification\Child
Formal\ORM\Adapter\Repository::any()
- You can use any enum as a property type (nullable/optional or not)
- You can use any enum inside
Set
s without having to wrap them in another class Formal\ORM\Adapter\Elasticsearch
to store aggregates in ElasticsearchFormal\ORM\Adapter\Elasticsearch\CreateIndex
Formal\ORM\Adapter\Elasticsearch\DropIndex
Changed
- Aggregates are now stored on multiple files with the
Filesystem
adapter - (Optional) Entities id column with the
SQL
adapter now use the Aggregate id as a value, the columns in the Aggregate column referencing these columns have been removed Formal\ORM\Raw\Aggregate\Collection::properties()
has been renamed::entities()
- Collection, entities and optional entities table column
id
has been renamedaggregateId
Formal\ORM\Specification\Entity
now has a similar api toChild