database icon indicating copy to clipboard operation
database copied to clipboard

Implicit has one relation not working

Open xjuric29 opened this issue 5 years ago • 0 comments

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

xjuric29 avatar Nov 26 '19 23:11 xjuric29