I'm using a custom mapping type for a LocalDate class (mapped to a DATE field in the MySQL database).
Given the following entity:
When var_export() -ing the result of UnitOfWork::getEntityIdentifier() on an instance of this class, the result is similar to:
This is a bit weird, because as far as I understand it, it should return the identity as it maps to database fields:
If we take the $restaurant example, it returns the restaurant ID, and not the Restaurant entity, so my opinion is that it should be the same for $date.
Shouldn't the UnitOfWork use Type::convertToDatabaseValue() on custom mapping types to infer their value, when computing the identity of an entity?