• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

B4nan / mikro-orm
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/bundler/docs/nokogiri-1.10.4
DEFAULT BRANCH: master
Repo Added 04 Jun 2018 09:56PM UTC
Files 82
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH assign-fix
branch: assign-fix
CHANGE BRANCH
x
Reset
  • assign-fix
  • auto-flush
  • cascade-merge
  • class-name
  • cli
  • codeclimate
  • config
  • context
  • dependabot/bundler/docs/nokogiri-1.10.4
  • dependabot/npm_and_yarn/fstream-1.0.12
  • dependabot/npm_and_yarn/lodash.template-4.5.0
  • dev
  • drivers
  • ent-gen
  • entities-array
  • entity
  • find-options
  • fk
  • getter
  • join-cond
  • knex
  • knex-schema
  • knex-schema-update
  • lint
  • lint-new-lines
  • locking
  • map
  • master
  • metadata
  • node12
  • one-to-one
  • oninit
  • orphan-removal
  • postgres
  • qb-left-join
  • query-expressions
  • rc
  • renovate/configure
  • renovate/docker-mongo-3.x
  • renovate/docker-postgres-11.x
  • renovate/fs-extra-7.x
  • renovate/fs-extra-8.x
  • renovate/globby-10.x
  • renovate/husky-2.x
  • renovate/husky-3.x
  • renovate/lint-staged-9.x
  • renovate/major-commitlint-monorepo
  • renovate/rimraf-3.x
  • renovate/ts-morph-2.x
  • renovate/ts-morph-3.x
  • rm
  • schema
  • smart-query
  • uow
  • v0.1.1
  • v0.10.0
  • v0.10.1
  • v0.10.2
  • v0.10.3
  • v0.10.4
  • v0.10.5
  • v0.10.6
  • v0.10.7
  • v0.10.8
  • v0.10.9
  • v0.2.0
  • v0.2.1
  • v0.2.2
  • v0.2.3
  • v0.3.0
  • v0.3.1
  • v0.3.2
  • v0.3.3
  • v0.3.4
  • v0.3.5
  • v0.4.0
  • v0.5.0
  • v0.5.1
  • v0.5.2
  • v0.5.3
  • v0.5.4
  • v0.5.5
  • v0.5.6
  • v0.6.0
  • v0.6.1
  • v0.6.2
  • v0.6.3
  • v0.6.4
  • v0.6.5
  • v0.6.6
  • v0.6.7
  • v0.6.8
  • v0.7.0
  • v0.7.1
  • v0.7.2
  • v0.7.3
  • v0.7.4
  • v0.8.0
  • v0.8.1
  • v0.8.2
  • v0.9.0
  • v0.9.1
  • v0.9.2
  • v0.9.3
  • v0.9.4
  • v0.9.5
  • v0.9.6
  • v0.9.7
  • v0.9.8
  • v0.9.9
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.1.0
  • v1.1.1
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v2.0.0
  • v2.0.0-rc
  • v2.0.1
  • v2.0.2
  • v2.0.3
  • v2.1.0
  • v2.1.1
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.3.0
  • v2.3.1
  • v2.3.2
  • v2.4.0
  • v2.5.0
  • v2.6.0
  • v2.7.0
  • v2.7.1
  • v2.7.2
  • v2.7.3
  • v2.7.4
  • v2.7.5
  • v2.7.6
  • vanilla-js

pending completion
476

Pull #62

travis-ci-com

web-flow
feat(core): automatically fix wrongly assigned associations

When you use `Object.assign(entity, { ... })` instead of `entity.assign({ ... })` you could put your entity
into invalid state where there will be PK instead of entity reference. With this change all managed entities
will be validated before flushing and this case will be automatically handled, converting the PK to entity
when persisting it.

This is especially handy when you migrate existing project where you used `Object.assign(entity, { ... })`
to update entities (like in TypeORM) as this kind of error could be hard to find because they were failing
silently.
Pull Request #62: feat(core): automatically fix wrongly assigned associations

1476 of 1476 branches covered (100.0%)

Branch coverage included in aggregate %.

18 of 18 new or added lines in 3 files covered. (100.0%)

2733 of 2733 relevant lines covered (100.0%)

3970.07 hits per line

Relevant lines Covered
Build:
Build:
2733 RELEVANT LINES 2733 COVERED LINES
3970.07 HITS PER LINE
Source Files on assign-fix
  • List 0
  • Changed 33
  • Source Changed 10
  • Coverage Changed 33
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
476 assign-fix feat(core): automatically fix wrongly assigned associations When you use `Object.assign(entity, { ... })` instead of `entity.assign({ ... })` you could put your entity into invalid state where there will be PK instead of entity reference. With th... Pull #62 11 Jun 2019 10:15PM UTC web-flow travis-ci-com pending completion  
475 assign-fix feat(core): automatically fix wrongly assigned associations When you use `Object.assign(entity, { ... })` instead of `entity.assign({ ... })` you could put your entity into invalid state where there will be PK instead of entity reference. With th... push 11 Jun 2019 10:11PM UTC Martin Adamek travis-ci-com pending completion  
474 assign-fix feat(core): automatically fix wrongly assigned associations When you use `Object.assign(entity, { ... })` instead of `entity.assign({ ... })` you could put your entity into invalid state where there will be PK instead of entity reference. With th... Pull #62 11 Jun 2019 09:35PM UTC web-flow travis-ci-com pending completion  
473 assign-fix feat(core): automatically fix wrongly assigned associations When you use `Object.assign(entity, { ... })` instead of `entity.assign({ ... })` you could put your entity into invalid state where there will be PK instead of entity reference. With th... push 11 Jun 2019 09:32PM UTC Martin Adamek travis-ci-com pending completion  
See All Builds (754)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc