Skip to content

Commit 1046743

Browse files
committed
Support order default
1 parent b475545 commit 1046743

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/DataMapper.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
*/
1919
abstract class DataMapper extends ModelAbstract
2020
{
21-
/**
22-
* @var string
23-
*/
24-
protected $order = '';
25-
2621
/**
2722
* DataMapper constructor
2823
*/

src/ModelAbstract.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ abstract class ModelAbstract extends ModelContract
7272
*/
7373
protected $hashKey = '_id';
7474

75+
/**
76+
* Used to determine the order of reads
77+
* @var string
78+
*/
79+
protected $order = '';
80+
7581
/**
7682
* Fields to persist the creation object
7783
* @var array

0 commit comments

Comments
 (0)