Closed Mikulas closed 9 years ago
Sorry, I don't get it fully. :crying_cat_face:
It's a very minor thing, it's just weird that a column that will truncate to date is tested for time precision. This test would fail if the entity was persisted and loaded (obviously not from identity map) as it would have passed
Assert::same('2000-01-01 00:00:00', $author->born->format('Y-m-d H:i:s'));
instead.
Ou yes! Such nice issue number wasted for such minor thing :D :smile_cat:
Yeah right sorry about that :D
This test would fail if the entity was persisted and loaded (obviously not from identity map)
actually, it does not use an identity map, there is created new model instance between persistance & assert.
author.born
is defined asdate
in both engines. The test case is valid and it should probably behave like this, but it's inconsistent. Is there a reason for the field not to be defined as datetime and timestamp in mysql and pg respectively?https://github.com/nextras/orm/blob/master/tests/cases/integration/Mapper/file.general.phpt#L73