经过试验此类问题都是有备注中@reuturn 类名 有关
@return PositionData the static model class
加入这个类名后,代码自动提示即可正常
案例:
class PositionData extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return PositionData the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
/**
* @return string the associated database table name
*/
public function tableName()
{
return '{{1_position_data}}';
}
}