WithAll().Scan(&list) can't fetch embedded
struct from HasOne relation's children table
#2119
Labels
planned
This issue/proposal is planned into our next steps.
1. What version of
Go
and system type/arch are you using?2. What version of
GoFrame
are you using?3. Can this issue be re-produced with the latest release?
Sure!
4. What did you do?
create tables in MySQL 8.0
define custom
Entity
structs,Base
struct for re-use in other structtry to fetch data by dao's WithAll().Scan(&roles)
fetch Statuses is CORRECT, it can get
embedded
structfetch Roles is INCORRECT, it can't get
embedded
Status struct ( En, Cn, Weight is empty )5. What did you expect to see?
log file
g.Dump result
6. What did you see instead?
log file
g.Dump result
The text was updated successfully, but these errors were encountered: