- Added a new MsSQL adapter
- Some bugfixes were made within annotations. - Added a new Object Instanciator which allows to manipulate and define how an object from an entity must be instanciated with given value.
This commit is contained in:
1 parent
9df7e65dcf
commit
5bd60129ea
22 files changed
+547
-103
No files matched your search
@@ -9,15 +9,13 @@ class OrderBy implements \Ulmus\Annotation\Annotation {
|
||||
public string $order = "ASC";
|
||||
|
||||
public function __construct(string $field = null, string $order = null)
|
||||
{
|
||||
switch(true) {
|
||||
case $field !== null:
|
||||
$this->field = $field;
|
||||
break;
|
||||
|
||||
case $order !== null:
|
||||
$this->order = $order;
|
||||
break;
|
||||
{
|
||||
if ( $field !== null ) {
|
||||
$this->field = $field;
|
||||
}
|
||||
|
||||
if ( $order !== null ) {
|
||||
$this->order = $order;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user