bugfix: query parent.constructor.name in entityType when type is parent
Hi, when I was using your library, I found that I couldn't get the children correctly while using the parent. I thought we should query the parent constructor name in entityType, so I submitted a change and hope to get a reply. Thank you for everything
@bashleigh
Hi @JasonJiang00 Thanks for the PR, however I think this change will likely break the query for others. Can you please provide me a snippet of how you're saving to the DB and the results in the DB? Just want to check the results. I do remember entity['prototye'].name and entity.constructor.name have different results and this is likely one of those conflicts