Lattice Grid Buy a licence

Data Router ยท console.warn

relateRows needs both `child` and `parent` t...

Printed by Data Router, prefixed [lattice], since 1.84.0.

Warnings reference › data-router:relaterows-missing-source

Identifier
data-router:relaterows-missing-source
Raised by
Data Router
Since
1.84.0

What happened

relateRows was called with a child or parent that names no registered source, so there is no child store to cascade or orphan. The rule is dropped rather than the router throwing.

The fix

Register both sources with addSource first, then pass their ids (or the returned handles) to relateRows.

The smallest fix

router.relateRows({ child: 'address', parent: 'company', foreignKey: 'companyId', onParentDelete: 'cascade' })

Reference

Covered in full at the API reference.