Dropped database JOINs
Not being used and the logic is pretty damn hacky. I don't believe in JOINs so I'm unsure if this support will be re-added in the future or if there will simply be a backed in opinion that JOINs are the devil.
This commit is contained in:
parent
9cc466bcd3
commit
8655045097
2 changed files with 1 additions and 75 deletions
|
@ -158,24 +158,6 @@ class ModelTest extends PHPUnit_Framework_TestCase
|
|||
$this->assertEquals([2 => 'one'], $model->records);
|
||||
}
|
||||
|
||||
public function testJoinsString()
|
||||
{
|
||||
$model = new MockModelWithoutColumns([
|
||||
'conditions' => ['pickles.id' => 1],
|
||||
'joins' => 'brines ON brines.pickle_id = pickles.id',
|
||||
]);
|
||||
}
|
||||
|
||||
public function testJoinsArray()
|
||||
{
|
||||
$model = new MockModelWithoutColumns([
|
||||
'conditions' => ['pickles.id' => 1],
|
||||
'joins' => [
|
||||
'INNER JOIN' => 'brines ON brines.pickle_id = pickles.id',
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function testFieldValues()
|
||||
{
|
||||
$model = new MockModel('all');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue