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

Implicit has one relation not working #244

Open
xjuric29 opened this issue Nov 26, 2019 · 0 comments
Open

Implicit has one relation not working #244

xjuric29 opened this issue Nov 26, 2019 · 0 comments

Comments

@xjuric29
Copy link

Version: v3.0.2

Bug Description

"Implicit has one" access doesn't work with correct foreign key references.

Steps To Reproduce

Access any table column from table linked with foreign key like this:
$ticket->user->first_name

Longer notation with ref is working:
$ticket->ref('user', 'author')->first_name

Expected Behavior

Implicit access should work exactly like calling method ref() as described at https://doc.nette.org/cs/3.0/database-explorer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant