Skip to content

Instantly share code, notes, and snippets.

@jaredhoyt
Created January 11, 2011 21:06
Show Gist options
  • Select an option

  • Save jaredhoyt/775142 to your computer and use it in GitHub Desktop.

Select an option

Save jaredhoyt/775142 to your computer and use it in GitHub Desktop.
<?php
var $virtualFields = array(
'full_name' => "CONCAT(`Contact`.`first_name`, ' ', `Contact`.`last_name`)",
'directory_name' => "CONCAT(`Contact`.`last_name`, ', ', `Contact`.`first_name`)",
'abbr_name' => "CONCAT(LEFT(`Contact`.`first_name`, 1), '. ', `Contact`.`last_name`)"
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment