Skip to content

Instantly share code, notes, and snippets.

View ChadSikorra's full-sized avatar

Chad Sikorra ChadSikorra

View GitHub Profile
@ChadSikorra
ChadSikorra / DataTable.php
Created October 15, 2012 03:26
Symfony2 Doctrine DataTables.js (Related Entity Enabled)
<?php
/**
* Recognizes mData sent from DataTables where dotted notations represent a related
* entity. For example, defining the following in DataTables...
*
* "aoColumns": [
* { "mData": "id" },
* { "mData": "description" },
* { "mData": "customer.first_name" },
* { "mData": "customer.last_name" }