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
<?php | |
namespace SimpleEntities; | |
use PommProject\ModelManager\Model\FlexibleEntity\FlexibleEntity; | |
use PommProject\ModelManager\Model\FlexibleEntity\FlexibleContainer; | |
use PommProject\ModelManager\Model\FlexibleEntity\StatefullEntityTrait; | |
class CustomFlexibleEntity extends FlexibleContainer | |
{ | |
use StatefullEntityTrait; |
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
/** | |
* begin transaction | |
*/ | |
public function begin() | |
{ | |
if(count($this->transactionStack) == 0) | |
{ | |
$this->transactionStack[0] = true; | |
parent::beginTransaction(); | |
} |
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
<?php | |
namespace Model; | |
use PommProject\Foundation\Session\Connection; | |
use PommProject\ModelManager\Exception\ModelException; | |
use PommProject\ModelManager\ModelLayer\ModelLayer; | |
trait BbTransactionTrait | |
{ | |
private $savePointStack = []; |