0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core
Simon Backx a30e42404b
Added getLazyRelation model helper method (#14943)
closes https://github.com/TryGhost/Team/issues/1626

- getLazyRelation is a safer shorthand for `model.related('relationName').fetch()`
- prevents doing a `fetch` operation on a relation that is already loaded, which can cause issues when `formatOnWrite` has a custom implementation
- uses the already loaded relation if it exists, or loads the relation
- doesn't reload if already loaded
- reload is forceable using the forceRefresh option
2022-05-31 13:21:53 +02:00
..
admin@9db564d1fd Updated Admin to v5.1.1 2022-05-30 13:54:28 +01:00
cli Added docs for writing new commands 2022-05-17 17:16:44 +01:00
frontend 🎨 Reduced favicon requirements and added image formatting (#14918) 2022-05-27 16:36:53 +02:00
server Added getLazyRelation model helper method (#14943) 2022-05-31 13:21:53 +02:00
shared Fixed detection of Windows environment when connecting to SQLite temp DB 2022-05-30 17:42:34 -04:00
app.js
boot.js Added frontend key to ghost_head for portal (#14782) 2022-05-11 17:34:31 +01:00
bridge.js Renamed lang and session_secret default settings (#14791) 2022-05-12 15:07:05 +01:00