- 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
@@ -16,16 +16,14 @@ class Field implements \Ulmus\Annotation\Annotation {
|
||||
|
||||
public bool $nullable = false;
|
||||
|
||||
public function __construct(string $type = null, int $length = null)
|
||||
public function __construct(? string $type = null, ? int $length = null)
|
||||
{
|
||||
switch(true) {
|
||||
case $type !== null:
|
||||
$this->type = $type;
|
||||
break;
|
||||
|
||||
case $length !== null:
|
||||
$this->length = $length;
|
||||
break;
|
||||
if ( $type !== null ) {
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
if ( $length !== null ) {
|
||||
$this->length = $length;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user