In the case where ModelA has a relationship to ModelB and ModelB also relates back to ModelA it is possible to end up in a runtime state where relators are being built before the model serialisers are available.
To Reproduce*
To simulate this, create 2 model files that define model, serializer and relator, then try to run.
Expected behaviour*
Currently this is expected behaviour, however it makes development with reciprocal relationships very difficult.
I would suggest that by making the model serializer in relators a getter rather than a concrete instance we could mitigate this limitation.
Describe the bug*
In the case where
ModelA
has a relationship toModelB
andModelB
also relates back toModelA
it is possible to end up in a runtime state where relators are being built before the model serialisers are available.To Reproduce*
To simulate this, create 2 model files that define model, serializer and relator, then try to run.
Expected behaviour*
Currently this is expected behaviour, however it makes development with reciprocal relationships very difficult.
I would suggest that by making the model serializer in relators a getter rather than a concrete instance we could mitigate this limitation.