-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into select-count
- Loading branch information
Showing
19 changed files
with
591 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/ORM/Driver/MySQL/TableInheritanceWithoutTypeColumnTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Driver\MySQL; | ||
|
||
class TableInheritanceWithoutTypeColumnTest extends \Cycle\ORM\Tests\TableInheritanceWithoutTypeColumnTest | ||
{ | ||
public const DRIVER = 'mysql'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Driver\MySQL; | ||
|
||
class TransactionTest extends \Cycle\ORM\Tests\TransactionTest | ||
{ | ||
public const DRIVER = 'mysql'; | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ORM/Driver/Postgres/TableInheritanceWithoutTypeColumnTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Driver\Postgres; | ||
|
||
class TableInheritanceWithoutTypeColumnTest extends \Cycle\ORM\Tests\TableInheritanceWithoutTypeColumnTest | ||
{ | ||
public const DRIVER = 'postgres'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Driver\Postgres; | ||
|
||
class TransactionTest extends \Cycle\ORM\Tests\TransactionTest | ||
{ | ||
public const DRIVER = 'postgres'; | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ORM/Driver/SQLServer/TableInheritanceWithoutTypeColumnTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Driver\SQLServer; | ||
|
||
class TableInheritanceWithoutTypeColumnTest extends \Cycle\ORM\Tests\TableInheritanceWithoutTypeColumnTest | ||
{ | ||
public const DRIVER = 'sqlserver'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Driver\SQLServer; | ||
|
||
class TransactionTest extends \Cycle\ORM\Tests\TransactionTest | ||
{ | ||
public const DRIVER = 'sqlserver'; | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ORM/Driver/SQLite/TableInheritanceWithoutTypeColumnTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Driver\SQLite; | ||
|
||
class TableInheritanceWithoutTypeColumnTest extends \Cycle\ORM\Tests\TableInheritanceWithoutTypeColumnTest | ||
{ | ||
public const DRIVER = 'sqlite'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Driver\SQLite; | ||
|
||
class TransactionTest extends \Cycle\ORM\Tests\TransactionTest | ||
{ | ||
public const DRIVER = 'sqlite'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Cycle\ORM\Tests\Fixtures; | ||
|
||
use Cycle\ORM\Command\CommandInterface; | ||
use Cycle\ORM\Heap\Node; | ||
use Cycle\ORM\Heap\State; | ||
use Cycle\ORM\Mapper\Mapper; | ||
|
||
class TransactionTestMapper extends Mapper | ||
{ | ||
public function queueDelete($entity, Node $node, State $state): CommandInterface | ||
{ | ||
if ($entity->id == '3') { | ||
return new class () implements CommandInterface { | ||
public function isReady(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function isExecuted(): bool | ||
{ | ||
return false; | ||
} | ||
|
||
public function execute() | ||
{ | ||
throw new \Exception('Something went wrong'); | ||
} | ||
|
||
public function complete() | ||
{ | ||
} | ||
|
||
public function rollBack() | ||
{ | ||
} | ||
}; | ||
} | ||
|
||
return parent::queueDelete($entity, $node, $state); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.