Fixed error 500 on virtual display field (task #2430)
Fixed error 500 on virtual display field (task #2430)

Display field was used in the SELECT query, which broke if display
field was a virtual field.  A workaround has been applied, with the
following side effects:

* Additional SQL queries are needed to fetch the record for which a
  display field is needed.
* Primary key is used instead of display field for locating the record,
  but with the current query things will break if the primary key is
  either not defined, or is a composite key (multiple fields).

QoboLtd/cakephp-csv-migrations,QoboLtd/cakephp-csv-migrations