Skip to content

Some migrations not applied / not defined #143

@smarek

Description

@smarek
  • Table Table->newEntity() should be migrated to Table->newEmptyEntity(), validating that newEntity() did not originally contain any arguments / data for entity creation
  • Paginator $this->Paginator->counter(['format' => __('format text')]) should be migrated to $this->Paginator->counter(__('format text'))
  • Form public function buildValidator(Event $event, Validator $validator, $name) should be migrated to public function validationDefault(Validator $validator): Validator if the method validationDefault is not yet defined
  • Form public function validate(array $data) should be migrated to public function validate(array $data): bool
  • Form protected function _buildSchema(Schema $schema) should be migrated to protected function _buildSchema(Schema $schema): Schema
  • Form public function getData($field = null) should get migrated to public function getData(?string $field = null)
        $this->paginate = [
            'order' => ['SomeTable.column'],
        ];

should be migrated to

        $this->paginate = [
            'order' => ['SomeTable.column' => 'asc'],
        ];

thus specifically providing order, if it was not provided before

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions