I was wondering, is there any way to let Yii understand that JustAModel::model()->findByPk(1) returns a JustAModel model and not a CActiveRecord?
What I do have:
/**
* @param string $className active record class name.
* @return Message the static model class
*/
static public function model ( $className = __CLASS__ )
{
return parent::model($className);
}
But that return is offcourse overwritten by the CActiveRecord->findByPk return of CactiveRecord
/**
* @return CActiveRecord the record found. Null if none is found.
*/
public function findByPk($pk,$condition='',$params=array())
{
I’m just trying out PHP Storm for the first time, and added YiiStorm. PHP Storm says it’s getting the following error:
class with name "com.yiistorm.actions.YiiStormConfigAction" not found [Plugin: YiiStorm]: class with name "com.yiistorm.actions.YiiStormConfigAction" not found [Plugin: YiiStorm]
Any idea what’s causing this? I don’t want to be missing out on any goodies dot dot dot