$saveStatus = 1;
$conn = ConnectionManager::get('default');
$conn->begin();
$tableArticles = TableRegistry::get('Articles');
$tableUsers = TableRegistry::get('Users');
$articlesEntity = $tableArticles->newEntities($categoriesArray);
foreach ($articlesEntity as $entity) {
Let's see
http://tinyurl.com/3nprn54
or alternatively
http://book.cakephp.org/view/1633/Transactions
On May 29, 7:59 pm, DerekGardiner derek.gardi...@gmail.com wrote:
Does cakePHP have a default transaction management?
On May 27, 8:24 am, Derek Jonathan Gardiner derek.gardi...@gmail.com
Does cakePHP have a default transaction management?
On May 27, 8:24 am, Derek Jonathan Gardiner derek.gardi...@gmail.com
wrote:
How does cake handle transaction management? If the DB connection where to
be lost, for example, in the middle of save or if two sources try to
make amendments
How does cake handle transaction management? If the DB connection where to
be lost, for example, in the middle of save or if two sources try to
make amendments to the same table row how would cakes transaction manager
handle it?
--
Our newest site for the community: CakePHP Video Tutorials