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

No property generated for this method #1625

Open
Vasiliy-Makogon opened this issue Dec 2, 2024 · 0 comments
Open

No property generated for this method #1625

Vasiliy-Makogon opened this issue Dec 2, 2024 · 0 comments
Labels

Comments

@Vasiliy-Makogon
Copy link

Vasiliy-Makogon commented Dec 2, 2024

Versions:

  • ide-helper Version: 2.12.3
  • Laravel Version: 8.83.9
  • PHP Version: 8.0

Question:

Why is no description created for this method?

public function currentEmployee(int|null $legalEntityId = null): HasOne
{
    return $this->hasOne(Employee::class)
        ->where('legal_entity_id', $legalEntityId);
}

$currentEmployee = $user->currentEmployee();
print_r(get_class($currentEmployee)); // Illuminate\Database\Eloquent\Relations\HasOne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant