Skip to content

Instantly share code, notes, and snippets.

View makamo's full-sized avatar

Maxime Lavoie makamo

View GitHub Profile
/src/Controller/PaiesController.php (line 87)
[
'paie_heures' => [
(int) 0 => [
'date' => '2014-07-05',
'equipement_id' => (int) 43,
'qte ' => '4.5',
'type ' => (int) 0,
public function generate()
{
//Generation des paies
if ($this->request->is(array('post', 'put'))) {
$paies = $this->request->data;
foreach ($paies as $key => $paie) {
$paie = $this->Paies->get($paie['id']);
$periodeDate = Periode::getStartAndEndDate($paie->week, $paie->year);
// Trouver les rapports journaliers pour le contrat choisi, la foreuse choisie et entre les dates sélectionnées
$employee_rjs = TableRegistry::get('employees_rjs');
<?php
namespace App\Model\Entity;
use Cake\Database\Expression\QueryExpression;
use Cake\ORM\Entity;
use Cake\ORM\TableRegistry;
use Carbon\Carbon;
use Versadrill\Periode;
/**
2015-03-18 14:06:24 Notice (8): Undefined index: contrat_id in [/var/www/timesheets/vendor/cakephp/cakephp/src/ORM/Association/BelongsToMany.php, line 330]
Trace: Cake\Error\BaseErrorHandler::handleError()
- CORE/src/Error/BaseErrorHandler.php, line 138 Cake\ORM\Association\BelongsToMany::_buildResultMap()
- CORE/src/ORM/Association/BelongsToMany.php, line 330 Cake\ORM\Association\BelongsToMany::eagerLoader()
- CORE/src/ORM/Association/SelectableAssociationTrait.php, line 57 Cake\ORM\EagerLoader::loadExternal()
- CORE/src/ORM/EagerLoader.php, line 538 Cake\ORM\Query::_execute()
- CORE/src/ORM/Query.php, line 644 Cake\ORM\Query::_all()
- CORE/src/Datasource/QueryTrait.php, line 218 Cake\ORM\Query::all()
- CORE/src/ORM/Query.php, line 595 Cake\ORM\Query::first()
- CORE/src/Datasource/QueryTrait.php, line 340 Cake\ORM\Query::firstOrFail()
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 15-03-17 21:33
Description: Ticking block entity
java.lang.NullPointerException: Ticking block entity
at
cofh.thermalexpansion.block.machine.TileTransposer.updateContainerFill
Testing started at 13:08 ...
Uploading test files to timesheets.dev...
Executing tests
Http request failed: HTTP/1.1 404 Not Found
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Error: Missing Controller </title>
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./tests/bootstrap.php"
>
<php>
<ini name="memory_limit" value="-1"/>
ssh://vagrant@localhost:2222/usr/bin/php -dxdebug.coverage_enable=1 /home/vagrant/.phpstorm_helpers/phpunit.php --coverage-clover /home/vagrant/.phpstorm_helpers/coverage/Timesheets_EmployeesTableTest_testFindDisponible.coverage --no-configuration --filter "/::testFindDisponible( .*)?$/" App\Test\TestCase\Model\Table\EmployeesTableTest /var/www/timesheets/tests/TestCase/Model/Table/EmployeesTableTest.php
Testing started at 10:30 ...
PHPUnit 4.4.0 by Sebastian Bergmann.
The datasource configuration "default" was not found.
/var/www/timesheets/vendor/cakephp/cakephp/src/Datasource/ConnectionManager.php:187
/var/www/timesheets/vendor/cakephp/cakephp/src/ORM/TableRegistry.php:191
/var/www/timesheets/tests/TestCase/Model/Table/EmployeesTableTest.php:78
/**
* Connection information used by the ORM to connect
* to your application's datastores.
*/
'Datasources' => [
'default' => [
'className' => 'Cake\Database\Connection',
'driver' => 'Cake\Database\Driver\Mysql',
'persistent' => false,
'host' => 'localhost',
<?php
namespace App\Controller;
use Carbon\Carbon;
use Core\Flash\Flash;
use App\Entity\EmployeeEntity;
class CalculesController extends AppController