Skip to content

feat: add connection option entitySkipConstructor - #7770

Merged
imnotjames merged 2 commits into
typeorm:masterfrom
imnotjames:feat/1772/optionally-skip-constructor
Jun 28, 2021
Merged

imnotjames merged 2 commits into
typeorm:masterfrom
imnotjames:feat/1772/optionally-skip-constructor

Conversation

@imnotjames

@imnotjames imnotjames commented Jun 20, 2021 •

Copy link
Copy Markdown
Contributor

Description of change

this adds the option for bypassing the constructor when deserializing
the Entities. note that this may cause problems with class-based
JavaScript features that rely on the constructor to operate - such as private
properties or default values

fixes #1772

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

this adds the option for bypassing the constructor when deserializing
the Entities.  note that this may cause problems with class-based
JavaScript features that rely on the constructor to operate - such as private
properties or default values
@imnotjames
imnotjames force-pushed the feat/1772/optionally-skip-constructor branch from 98ae15c to 8ffe51f Compare June 20, 2021 22:47
@imnotjames
imnotjames marked this pull request as ready for review June 21, 2021 00:42
@imnotjames
imnotjames force-pushed the feat/1772/optionally-skip-constructor branch from f1d2d2c to 3ca7aae Compare June 21, 2021 00:42
@imnotjames
imnotjames merged commit 2adfe36 into typeorm:master Jun 28, 2021
@imnotjames
imnotjames deleted the feat/1772/optionally-skip-constructor branch June 28, 2021 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Skip constructor when entity is loaded from database

1 participant