Skip to content
Permalink
Browse files

Fix CS errors.

  • Loading branch information...
ADmad authored and lorenzo committed Jul 9, 2016
1 parent f38839f commit 3be1067919d8d15694eed3b4132ee7b5c8c96cad
@@ -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.';
}
@@ -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 = [])
{
@@ -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)
{
@@ -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)
{
@@ -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.
You can’t perform that action at this time.