added Concerns::InteractsWithPivotTable 🤯

Move all pivot related methods for the BelongsToMany relation into
the new InteractsWithPivotTable concern.

 - rvalue overloads for BelongsToMany::as/withPivot
 - added reserve where possible
 - whitespaces and formatting
 - also complete revisit
This commit is contained in:
silverqx
2022-08-03 13:51:23 +02:00
parent 1749f3a724
commit 53eb512d2c
4 changed files with 1281 additions and 957 deletions

View File

@@ -118,6 +118,7 @@ headersList += \
$$PWD/orm/tiny/relations/basepivot.hpp \
$$PWD/orm/tiny/relations/belongsto.hpp \
$$PWD/orm/tiny/relations/belongstomany.hpp \
$$PWD/orm/tiny/relations/concerns/interactswithpivottable.hpp \
$$PWD/orm/tiny/relations/concerns/supportsdefaultmodels.hpp \
$$PWD/orm/tiny/relations/hasmany.hpp \
$$PWD/orm/tiny/relations/hasone.hpp \