-
Notifications
You must be signed in to change notification settings - Fork 46
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
HasOneSql is not merging imported field seed properly #1046
Comments
@mkrecek234 please do not add Also, please copy/screenshot full backtrace in case you want to refer to it. Refering to a line number without knowing the file is almost useless. The same for the exception message, as the reason might depend on a context which is shown in exceptions params (added by |
There is no |
Correct - it relates to the missing isEditable() property of SqlExpressionField. In Model::getFields() the following code is not compatible with SqlExpressionField:
As I cannot create minimalistic code on demo today, here already the info to reproduce:
In a child model create a hasOne and import that expression: Then simple check it in a crud: |
I checked further, the issue is that |
Thank you for the code. I am looking into it.
really a property? I seached I belive the issue is caused by Line 457 in 0892a70
|
yes, doesn't it come from your code? |
No, I haven't touched anything there, just standard model definitions |
issue is here: data/src/Reference/HasOneSql.php Line 87 in 0892a70
|
Steps to reproduce:
Error
TypeError: Atk4\Data\Field::isEditable(): Return value must be of type bool, array returned
in Model:730
The issue is in line 734, as isEditable is not existing as a property for SqlExpressionField.
The text was updated successfully, but these errors were encountered: