We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.13 5.0.22
The change #10936 is broken. The tableName property is not populated.
tableName
Create a custom DBField with addToQuery function.
addToQuery
<?php use SilverStripe\ORM\FieldType\DBField; class MyDBField extends DBField { /** * @param SQLSelect $query */ public function addToQuery(&$query) { $query->addSelect([ $this->name => '"' . $this->tableName . '"."' . $this->name . '"' ]); } }
Will lead to SELECT ""."MyColumn" FROM "MyTable"
SELECT ""."MyColumn" FROM "MyTable"
The text was updated successfully, but these errors were encountered:
Thank you for raising this. I've created a pull request to fix it.
Sorry, something went wrong.
Linked PR was merged
emteknetnz
No branches or pull requests
Affected Version
4.13
5.0.22
Description
The change #10936 is broken. The
tableName
property is not populated.Steps to Reproduce
Create a custom DBField with
addToQuery
function.Will lead to
SELECT ""."MyColumn" FROM "MyTable"
PR
The text was updated successfully, but these errors were encountered: