mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
Removing forcing of table name for CakeTestFixture when importing schema and records from existing model.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5972 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
18c916fc76
commit
a9bafdedb4
1 changed files with 0 additions and 2 deletions
|
@ -54,7 +54,6 @@ class CakeTestFixture extends Object {
|
|||
*
|
||||
*/
|
||||
function init() {
|
||||
|
||||
if (isset($this->import) && (is_string($this->import) || is_array($this->import))) {
|
||||
$import = array();
|
||||
|
||||
|
@ -70,7 +69,6 @@ class CakeTestFixture extends Object {
|
|||
$model =& new $import['model'];
|
||||
$db =& ConnectionManager::getDataSource($model->useDbConfig);
|
||||
$db->cacheSources = false;
|
||||
$this->table = $this->useTable;
|
||||
$this->fields = $model->schema(true);
|
||||
$this->fields[$model->primaryKey]['key'] = 'primary';
|
||||
} elseif (isset($import['table'])) {
|
||||
|
|
Loading…
Add table
Reference in a new issue