mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing CakeFixtureManager::loadSingle to create the table if not exists
This commit is contained in:
parent
82da9be2ce
commit
c4b35ebc14
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,7 @@ class CakeFixtureManager {
|
|||
protected $_loaded = array();
|
||||
|
||||
/**
|
||||
* Holds the fixture classes that where instantiated indexed by class name
|
||||
* Holds the fixture classes that where ins tantiated indexed by class name
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
|
@ -260,6 +260,7 @@ class CakeFixtureManager {
|
|||
$db = $this->_db;
|
||||
}
|
||||
$fixture = $this->_fixtureMap[$name];
|
||||
$this->_setupTable($fixture, $db);
|
||||
$fixture->truncate($db);
|
||||
$fixture->insert($db);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue