Volodya Gurdin10/09/2020, 7:54 AM
code will throw
although entity table has parent_id column and it should know parent id value when you fetched it, so no additional queries needed to DB. And exposed seems to know that, cause if i put this code under transaction block - parent id will be returned without any additional queries
No transaction in context
tapac10/13/2020, 8:45 AM
the Parent instance is looked up from cache and it is absent there then Exposed will load it. You can define
field on the Entity and then it will just return the field value and will not require the transaction.