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

虚拟字段查询时无法显示 #87

Open
onlymetmh opened this issue Jul 17, 2024 · 0 comments
Open

虚拟字段查询时无法显示 #87

onlymetmh opened this issue Jul 17, 2024 · 0 comments
Labels

Comments

@onlymetmh
Copy link

sequelize 文档版本
v6

sequelize 目录章节
获取器, 设置器 & 虚拟字段

反馈描述
我定义了一个模型,在模型中定义了一个虚拟字段age,设置了获取器,还有一个brithday字段,也设置了获取器,但是,这两个属性的get函数在我调用模型的findAndCountAl方法l查询表数据的时候,都未主动调用,我以为是我配置的问题,但是我手动调用get时,这两个属性还是可以正常按照我的预期显示的,期间我尝试了初始化模型以及清除缓存,都无效,获取器除非主动调用,否则不会调用,这是为什么

@onlymetmh onlymetmh added the bug label Jul 17, 2024
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