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

typeorm relationships failed #52

Open
Ellomend opened this issue Sep 2, 2019 · 3 comments
Open

typeorm relationships failed #52

Ellomend opened this issue Sep 2, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@Ellomend
Copy link

Ellomend commented Sep 2, 2019

First of all great project. i love the idea.
however relationships with typeorm failing =(

	@OneToMany(type => Step, step => step.checklist)
	steps?: Step[];
	@ManyToOne(type => Checklist, checklist => checklist.steps)
	checklist?: Checklist;
Connection error! Error: Entity metadata for Checklist#steps was not found.

Is it me or typeorm really brittle and fragile ?

@issue-label-bot issue-label-bot bot added the bug Something isn't working label Sep 2, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.63. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@omeraplak
Copy link
Collaborator

Hi @Ellomend ,
Thanks for reaching us. We’re gonna investigate it. And we’ll update it soon. Feel free to contact us if you need anything.

@BatuhanW
Copy link
Contributor

BatuhanW commented Sep 6, 2019

@Ellomend Can you provide more details? An example repo or more detailed code could work.

However, my guess is, somehow entities are failed loading.

Can you import your entities one by one and pass it here; https://github.com/pankod/moleculerjs-boilerplate/blob/master/src/Entities/Connection.ts#L11

import { CheckList, Step} from '@Entities'

entities: [Checklist, Step],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants