As I said, I don’t know if pg supports multiple schema.
When I developed Oracle driver for AR, I remember to analyse postgres driver to see how did it deals with multiple schemas and I didn’t have seen this. But, as I don’t know too much about pg, I’m not sure.
Thanks for your reply, this is not about pg doesn’t support schema, pg does, but yii shell model command doesn’t support create model for table pg using schema.
I hava solved this problem.
To make a model table with schema using pg as db.
go to shell,
type model <name table>,
go to the model file, then edit manually.
public function tableName()
{
return 'eng.material';
}
also add this manually,
public function rules()
{ your rules array
}
and this.
public function attributeLabels()
{ your attributeLabels array}
So, I create the model using shell just to get the model template file, then crack it manually.