You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by tobispace September 29, 2021
Example query:
$notificationsManual = Notification::query()
->andWhere( 'MyNs\Models\Application\Notification.Published = 1' )
->andWhere( 'MyNs\Models\Application\Notification.Id NOT IN ( SELECT MyNs\Models\Application\NotificationLog.NotificationId FROM MyNs\Models\Application\NotificationLog WHERE MyNs\Models\Application\NotificationLog.Active = 1 )' )
->andWhere( 'MyNs\Models\Application\Notification.DateToSend <= :today:', [ 'today' => date( 'Y-m-d' ) . ' 23:59:59' ] )
->execute();
This query was working on Phalcon 3.4.4 (php 7.3)
When upgrading to Phalcon 4.1.2 (php 7.4), I get this error:
Column 'ificationId' doesn't belong to the model or alias 'SHL\Models\Application\Notification', when executing:
SELECT [MyNs\Models\Application\Notification].*
FROM [MyNs\Models\Application\Notification] WHERE ((MyNs\Models\Application\Notification.Published = 1)
AND (MyNs\Models\Application\Notification.Id NOT IN ( SELECT MyNs\Models\Application\NotificationLog.NotificationId
FROM MyNs\Models\Application\NotificationLog WHERE MyNs\Models\Application\NotificationLog.Active = 1 )))
AND (( MyNs\Models\Application\Notification.DateToSend <= :today: ))
This seems to happen with all PHQL queries where there is an identifier starting with "not" (case insensitive).
Why??
I'm too having issues with this in a current upgrade from phalcon 3.4 to 4.1, in my case the issue is with fields like notes_id or notes_type
Here is the smallest sample that PHQL parsing is removing the 'Not' part from the Notes table name:
The text was updated successfully, but these errors were encountered:
niden
added
duplicate
Duplicate issue. The duplicate issue is referenced in the comments
5.0
The issues we want to solve in the 5.0 release
labels
Oct 12, 2022
Discussed in #15694
Originally posted by tobispace September 29, 2021
Example query:
This query was working on Phalcon 3.4.4 (php 7.3)
When upgrading to Phalcon 4.1.2 (php 7.4), I get this error:
This seems to happen with all PHQL queries where there is an identifier starting with "not" (case insensitive).
Why??
I'm too having issues with this in a current upgrade from phalcon 3.4 to 4.1, in my case the issue is with fields like notes_id or notes_type
Here is the smallest sample that PHQL parsing is removing the 'Not' part from the Notes table name:
The text was updated successfully, but these errors were encountered: