我遵循了CakePHP 3.7的文档,以便在选择输入控件中显示一个虚拟字段。array $config) parent::initialize($config);
$this->setDisplayField$this->deliveryNoteDate;
} 我在DeliveryNote.php中公开了虚拟字段: class Del
是它们的方式,我们可以在实体中添加MySQL自定义函数。first_name, check_tenant(Tenants.id) FROM tenants AS Tenants
如果我可以在虚拟字段中定义自定义我能够在select()方法中传递新字段->select(['id', 'check_tenant' => '(c