You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[X ] latest
[ ] @next
[ ] 0.x.x (or put your version here)
When loading an entity's relation through a getter function, the listener @AfterLoad is never invoked. To demonstrate this issue, i first modified the TypeScript example by adding a listener to Category.
AfterLoad invoked for TypeScript
AfterLoad invoked for Programming
Found post: Post {
id: 1,
title: 'Control flow based type analysis',
text: 'TypeScript 2.0 implements a control flow-based type analysis for local variables and parameters.',
categories:
[ Category { id: 1, name: 'TypeScript' },
Category { id: 2, name: 'Programming' } ] }
Then, i changed Post to use a setter/getter for categories.
Found post: Post {
id: 1,
title: 'Control flow based type analysis',
text: 'TypeScript 2.0 implements a control flow-based type analysis for local variables and parameters.',
_categories:
[ Category { id: 1, name: 'TypeScript' },
Category { id: 2, name: 'Programming' } ] }
The text was updated successfully, but these errors were encountered:
* master: (25 commits)
version bump
skipped failing test for now
version bump
fixed issue with entity order by applied to update query builder
Update README.md
Add TYPEORM_DATABASE to available env options
Provide failing test
chore: fix typo in repository clear test filename
minor lint fix
delete entities using tablePath
implement timezone based tests for multiple database drivers
remove UTC transformation from drivers on write and read
fixed broken lazy relation behaviour with broadcaster
Fixes to Postgres, MySQL and MSSQL drivers propagating unhandled errors and crashing the hosting application
remove array cast apply on function typed columns
exit process on migrations:run command complete
removed only test
fixes#1720
added test for #1703
Update cli docs for create migration
...
# Conflicts:
# CHANGELOG.md
# README.md
# package-lock.json
# package.json
# src/driver/mysql/MysqlDriver.ts
# src/driver/postgres/PostgresDriver.ts
# src/driver/sqlite-abstract/AbstractSqliteDriver.ts
# src/persistence/SubjectOperationExecutor.ts
# src/subscriber/Broadcaster.ts
# test/github-issues/1716/issue-1716.ts
Issue type:
[ ] question
[X ] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[X ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
websql
TypeORM version:
[X ]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)When loading an entity's relation through a getter function, the listener
@AfterLoad
is never invoked. To demonstrate this issue, i first modified the TypeScript example by adding a listener to Category.The listener is invoked as expected:
Then, i changed Post to use a setter/getter for categories.
After this change, the listeners are not invoked:
The text was updated successfully, but these errors were encountered: