Skip to content

Instantly share code, notes, and snippets.

View makamo's full-sized avatar

Maxime Lavoie makamo

View GitHub Profile
/src/Controller/SupervisionsController.php (line 31)
[
'id' => (int) 3,
'numero_contrat' => 'B08-002',
'po' => '',
'mobilisation' => (float) 3000,
'demobilisation' => (float) 3000,
'surtemps' => (int) 40,
'unite_de_mesure' => '',
'localisation_id' => (int) 3,
<?php
namespace App\Connection;
class Connection {
public $Error;
public $Connection;
public $dataSourceName = "odbc:boreal";
@makamo
makamo / Equipements.php
Created January 26, 2015 16:15
J'ai cette erreur la ( ! ) Fatal error: Using $this when not in object context in /var/www/src/Equipements/Equipements.php on line 12 Call Stack #TimeMemoryFunctionLocation 10.0003237008{main}( ).../index.php:0 20.0058269792App\Equipements\Equipements::getList( ).../index.php:51
<?php
namespace App\Equipements;
use App\Connection\Connection;
class Equipements extends Connection{
private $table = '"TAB_Equipement"';
public static function getList(){
@makamo
makamo / Employees.php
Created January 27, 2015 15:27
Maximum function nesting level of '100' reached, aborting! in
<?php
namespace App\Table;
class Employees{
public function __get($key){
$method = 'get'.ucfirst($key);
$this->$key = $this->$method;
return $this->$key;
}
<?php
namespace Core\Database;
use \PDO;
class MsAcessDatabase extends Database{
private $db_dbq;
private $db_user;
private $db_pass;
private $db_driver;
<?php
namespace App\Table;
use Core\Table\Table;
class EmployeeTable extends Table{
protected $table = "TAB_Employe";
private $validForeur = ["Runner","Runner/Seul","Runner/Foreman"];
<?php
namespace App\Controller;
use Carbon\Carbon;
use Core\Flash\Flash;
use App\Entity\EmployeeEntity;
class CalculesController extends AppController
/**
* 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',
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
<?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"/>