Created
June 10, 2015 19:35
-
-
Save makamo/d57621d21cea561d9eaf to your computer and use it in GitHub Desktop.
This file contains 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
$paie = $this->Paies->get($id, [ | |
'contain' => [ | |
'Contrats.Entreprises.Pays', | |
'Contrats.Entreprises.Provinces', | |
'PaieHeures'=> function (Query $q) { | |
debug($q->select(['date', "h_payable"=>$q->func()->sum('h_payable'), 'fonction_id', 'task_id','taux_reg'])->order(['date'])); | |
die(); | |
}, | |
'PaieHeures.Fonctions', | |
'PaieHeures.Equipements', | |
'PaieMetrages', | |
'Employees', | |
] | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment