Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YF7.0.2] addNativeCondition only array #67

Open
davide-alghi opened this issue Nov 26, 2024 · 2 comments
Open

[YF7.0.2] addNativeCondition only array #67

davide-alghi opened this issue Nov 26, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@davide-alghi
Copy link

In YF 7 the 1st parameter of addNativeCondition() function is declared as array
Schermata del 2024-11-26 07-53-52

so this call will crash
Schermata del 2024-11-26 07-54-01

I have a question: how can I compare 2 fields in the same record? I used Expression() before this change, but now how can I do a 'createdtime=modifiedtime' condition in array?

@rskrzypczak rskrzypczak self-assigned this Nov 26, 2024
@rskrzypczak rskrzypczak added the bug Something isn't working label Nov 26, 2024
@rskrzypczak rskrzypczak added this to the 7.0.3 milestone Nov 26, 2024
@rskrzypczak
Copy link
Contributor

how can I do a 'createdtime=modifiedtime' condition in array?

in a similar way

->addNativeCondition(['=', 'vtiger_crmentity.createdtime', new Expression('vtiger_crmentity.modifiedtime')]);
->addNativeCondition(['=', $queryGenerator->getColumnName('createdtime'), new Expression($queryGenerator->getColumnName('modifiedtime'))]);

@davide-alghi
Copy link
Author

@rskrzypczak
great, tnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants