43 lines
944 B
PHP
43 lines
944 B
PHP
<?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 [
|
|
|
|
];
|
|
}
|
|
};
|
|
}
|
|
*/
|
|
} |