Difference between #35 and #36 of
A Multi-Tenant Strategy using Yii and MySQL

Revision #36 has been created by JFReyes on Dec 31, 2013, 4:54:26 PM with the memo:

more cleanup
« previous (#35) next (#37) »

Changes

Title unchanged

A Multi-Tenant Strategy using Yii and MySQL

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

saas, multi-tenant

Content changed

[...]
public function afterSave() // required - database views don't expose this to the schema Yii can access
{
if ($this->getIsNewRecord()) {
$this->id = Yii::app()->db->getLastInsertID();
 // I understand this works because MySQL handles it by each individual net connection so there should be no multiuser contention or race conditions
}
return parent::afterSave();
[...]
{
if ($this->getIsNewRecord()) {
$this->id = Yii::app()->db->getLastInsertID();
 // I understand this works because MySQL handles it by each individual net connection so there should be no multiuser contention or race conditions
}
return parent::afterSave();
}
}
```
[...]
7 0
23 followers
Viewed: 49 402 times
Version: 1.1
Category: How-tos
Written by: JFReyes
Last updated by: CeBe
Created on: Dec 28, 2013
Last updated: 10 years ago
Update Article

Revisions

View all history