user

How to set a custom displayField in CakePHP 3

Introduction

David Fava

David Fava


LATEST POSTS

Converting an Array of Objects to an Object. 19th May, 2018

Installing Wok and Kimchi on CentOS 7.x 24th March, 2018

CakePHP 3

How to set a custom displayField in CakePHP 3

Posted on .

We can concatenate two fields into a virtual field which will become our new displayField.

In your Entity:

In your Table:

See also:

https://book.cakephp.org/3.0/en/orm/entities.html#creating-virtual-fields

David Fava

David Fava

There are no comments.

View Comments (0) ...
Navigation