nm bugfix + pagination default order params

This commit is contained in:
2023-01-11 13:30:08 +01:00
parent 13f7866d42
commit dee9d8c34e
5 changed files with 43 additions and 17 deletions

View File

@@ -2,6 +2,9 @@
namespace Core\Objects\DatabaseEntity\Attribute;
// Unmanaged NM table, e.g. #[Multiple(Group::class)] for property 'groups' in User::class will create a
// table called NM_User_groups with just two columns (user_id, group_id)
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class Multiple {

View File

@@ -2,8 +2,8 @@
namespace Core\Objects\DatabaseEntity\Attribute;
namespace Core\Objects\DatabaseEntity\Attribute;
// Managed NM table, e.g. #[MultipleReference(Y::class, "x", "z")] in X::class will use
// the table of Y::class and lookup values by column "x_id" and create an array with keys of "z_id" holding a reference of Y
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class MultipleReference {