Comments (1)
Apologies for the spam - I think I've found the issue here.
The Doctrine tab in the Symfony Profiler shows the executed database query to be the following:
SELECT t0.id AS id_1, t0.name AS name_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.created_by AS created_by_5, t0.updated_by AS updated_by_6, t0.deleted_at AS deleted_at_7 FROM test_events t0 WHERE t0.id = ? AND (((t0.deleted_at IS NULL OR t0.deleted_at > CURRENT_TIMESTAMP)))
This appears to filter on deleted_at IS NULL
or later than CURRENT_TIMESTAMP
, and, yeah, wouldn't you know it:
❯ bin/console dbal:run-sql "SELECT deleted_at FROM test_events WHERE id = 0x1ec875b84ec1690e875cf7d92857e532;"
---------------------
deleted_at
---------------------
2022-02-06 16:00:10
---------------------
❯ bin/console dbal:run-sql "SELECT CURRENT_TIMESTAMP;"
---------------------
CURRENT_TIMESTAMP
---------------------
2022-02-06 15:40:49
---------------------
So I suppose this is due to my PHP application working with the Europe/Amsterdam
timezone, and my database working with a different timezone, which is an hour behind from Europe/Amsterdam
.
from stofdoctrineextensionsbundle.
Related Issues (20)
- Refresh does not return translated entity HOT 4
- Removing stof/doctrine-extensions-bundle HOT 1
- Metadadata cache generates empty files each timefor Loggable and Softdeleteable HOT 1
- Unable to use uploadable extension with Symfony 4.4 HOT 4
- Installation fails on Symfony 5.1 HOT 5
- Support for gedmo/doctrine-extensions 3.0 betas
- Documentation not up to date since 1.5.0 and gedmo/doctrine-extensions 3.0.0 HOT 5
- Generated Repository classes break after 1.5.0 update HOT 2
- Argument 1 passed to Gedmo\Mapping\MappedEventSubscriber::loadMetadataForObjectClass
- ext_translations table not generated HOT 1
- Support php 8.0 HOT 9
- php8 compatibility HOT 2
- Integrity constraint violation HOT 1
- PHP Fatal error: Uncaught Error: Class 'Doctrine\Bundle\DoctrineExtensionsBundle\DoctrineExtensionsBundle' not found in /home/mciat/Software/api-yelo.eco/src/Kernel.php:25 HOT 1
- Undefined constant Doctrine\DBAL\Types\Type::<Insert constant coin here> HOT 2
- loggable and doctrine migrations
- [SoftDeletable] How to disable on entity getter HOT 2
- Sort error when using Repository functions HOT 1
- Next release ? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stofdoctrineextensionsbundle.