You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.
In the code example for NormalClient/BusinessClient, the beforeSave function needs a semi-colon at the end:
public function beforeSave()
{
if(parent::beforeSave())
{
$this->type = self::NORMAL_CLIENT;
return true;
}
else return false
}
needs to be:
public function beforeSave()
{
if(parent::beforeSave())
{
$this->type = self::NORMAL_CLIENT;
return true;
}
else return false; // <-- change made here
}
Thanks for all your work on this!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Just copied/pasted your code in to get started from this page:
http://canni.github.com/YiiMongoDbSuite/xhtml/special.multimodel.html
In the code example for NormalClient/BusinessClient, the beforeSave function needs a semi-colon at the end:
public function beforeSave()
{
if(parent::beforeSave())
{
$this->type = self::NORMAL_CLIENT;
return true;
}
else return false
}
needs to be:
public function beforeSave()
{
if(parent::beforeSave())
{
$this->type = self::NORMAL_CLIENT;
return true;
}
else return false; // <-- change made here
}
Thanks for all your work on this!
The text was updated successfully, but these errors were encountered: