Bonjour, Je suis à la lecons 17 de jobeet: http://www.symfony-project.org/jobee...Doctrine/fr/17
exactement à la partie : Transactions de Doctrine

Quand je met ce code dans mon jobbetJob.class.php:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// lib/model/doctrine/JobeetJob.class.php
public function save(Doctrine_Connection $conn = null)
{
  // ...
 
  $conn = $conn ? $conn : JobeetJobTable::getConnection();
  $conn->beginTransaction();
  try
  {
    $ret = parent::save($conn);
 
    $this->updateLuceneIndex();
 
    $conn->commit();
 
    return $ret;
  }
  catch (Exception $e)
  {
    $conn->rollBack();
    throw $e;
  }
}
et que j'exécute cette commande:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
D:\web\php5\jobeet>symfony doctrine:data-load
>> doctrine  Loading data fixtures from "D:\web\php5\jobeet\data/fixtures"
>> doctrine  Loading data fixtures from "D:/...trineGuardPlugin/data/fixtures"
PHP Strict Standards:  Non-static method Doctrine_Table::getConnection() should
not be called statically, assuming $this from incompatible context in D:\web\php
5\jobeet\lib\model\doctrine\JobeetJob.class.php on line 56
 
Strict Standards: Non-static method Doctrine_Table::getConnection() should not b
e called statically, assuming $this from incompatible context in D:\web\php5\job
eet\lib\model\doctrine\JobeetJob.class.php on line 56
 
 
  Unknown record property / related component "_conn" on "JobeetJob"
Pourtant j'ai suivi pas à pas ce cours.
J'arrive pas a comprendre cette erreur
Pourriez vous m'aider?
Merci