- Some bugfixes were made and annotations were converted into attributes
This commit is contained in:
1 parent
9c8f9903fc
commit
6ff29a576c
14 files changed
+247
-113
No files matched your search
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace Lean\Console\Entity\Mysql;
|
||||
|
||||
use Ulmus\Common\EntityField;
|
||||
use Ulmus\Entity\Field\Datetime,
|
||||
Ulmus\Entity\InformationSchema;
|
||||
use Ulmus\EntityCollection;
|
||||
use Ulmus\Migration\FieldDefinition;
|
||||
|
||||
use Ulmus\Attribute\Obj\Table;
|
||||
|
||||
#[Table(name: "columns", database: "information_schema")] # migrated from: 'name' => "columns", 'database' => "information_schema"
|
||||
class Column extends InformationSchema\Column
|
||||
{
|
||||
|
||||
public function differsFromFieldDefinition(FieldDefinition $definition) : bool
|
||||
{
|
||||
switch(true) {
|
||||
//case $definition->
|
||||
|
||||
// return true;
|
||||
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/* public static function entityCollection(...$arguments) : EntityCollection
|
||||
{
|
||||
return new class(...$arguments) extends EntityCollection
|
||||
{
|
||||
public function getEntityData() : array
|
||||
{
|
||||
return [
|
||||
|
||||
];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user