-
-
Save fayqLs/b70168f01289ced51e12fe9bda2fa877 to your computer and use it in GitHub Desktop.
DEFINIR ORDENAÇÃO PELO CAMPO DE OUTRA TABELA NO DATAGRID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function onReload($param = NULL) | |
{ | |
if (empty($param['order'])) | |
{ | |
$param['order'] = 'cidade->nome'; | |
$criteria->setProperties($param); | |
} | |
$objects = $repository->load($criteria, FALSE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment