plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: Wrong helper for magic method in factory when using HasOne

Open markandrewkato opened this issue 2 years ago • 0 comments

Bug description

When trying to use magic method for a model with a has one relationship, it suggests "for" instead of "has" which is incorrect.

Client_php

_ide_helper_model_factories_690237dbaaf2e9215a86fd83804aab9d_php

GetClientCustomFieldsTest_php

Plugin version

7.4.3.232

Operating system

MacOS

Steps to reproduce

I have a Client model that has "HasOne" relation with the ClientHighLevelInformation model.

When trying to do Client::factory()-> , it suggests forClientHighLevelInformation() instead of hasClientHighLevelInformation() which is the correct one.

Relevant log output

No response

markandrewkato avatar Oct 19 '23 04:10 markandrewkato