Skip to content

Commit

Permalink
Fix CS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad authored and lorenzo committed Jul 17, 2016
1 parent f38839f commit 3be1067
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/ORM/Exception/RolledbackTransactionException.php
Expand Up @@ -23,4 +23,3 @@ class RolledbackTransactionException extends Exception

protected $_messageTemplate = 'The afterSave event in "%s" is aborting the transaction before the save process is done.';
}

9 changes: 6 additions & 3 deletions src/ORM/Table.php
Expand Up @@ -1438,7 +1438,8 @@ public function exists($conditions)
* $articles->save($entity, ['associated' => false]);
* ```
*
* @throws RolledbackTransactionException if the transaction is aborted in the afterSave event
* @throws \Cake\ORM\Exception\RolledbackTransactionException If the transaction
* is aborted in the afterSave event.
*/
public function save(EntityInterface $entity, $options = [])
{
Expand Down Expand Up @@ -1489,7 +1490,8 @@ public function save(EntityInterface $entity, $options = [])
* @param \ArrayObject $options the options to use for the save operation
* @return \Cake\Datasource\EntityInterface|bool
* @throws \RuntimeException When an entity is missing some of the primary keys.
* @throws RolledbackTransactionException if the transaction is aborted in the afterSave event
* @throws \Cake\ORM\Exception\RolledbackTransactionException If the transaction
* is aborted in the afterSave event.
*/
protected function _processSave($entity, $options)
{
Expand Down Expand Up @@ -1555,7 +1557,8 @@ protected function _processSave($entity, $options)
* @param \Cake\Datasource\EntityInterface $entity the entity to be saved
* @param \ArrayObject $options the options to use for the save operation
* @return bool True on success
* @throws RolledbackTransactionException if the transaction is aborted in the afterSave event
* @throws \Cake\ORM\Exception\RolledbackTransactionException If the transaction
* is aborted in the afterSave event.
*/
protected function _onSaveSuccess($entity, $options)
{
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/ORM/TableRegressionTest.php
Expand Up @@ -64,5 +64,4 @@ public function testAfterSaveRollbackTransaction()
$entity = $table->newEntity(['name' => 'Jon']);
$table->save($entity);
}

}

0 comments on commit 3be1067

Please sign in to comment.