[type, name. comment]) */ /* @var $labels string[] list of attribute labels (name => label) */ /* @var $rules string[] list of validation rules */ /* @var $relations array list of relations (name => relation declaration) */ echo " namespace ns ?>; use Yii; /** * This is the model class for table "generateTableName($tableName) ?>". * $data): ?> * @property ' ']) : '') . "\n" ?> * $relation): ?> * @property */ class extends baseClass, '\\') . "\n" ?> { /** * {@inheritdoc} */ public static function tableName() { return 'generateTableName($tableName) ?>'; } db !== 'db'): ?> /** * @return \yii\db\Connection the database connection used by this AR class. */ public static function getDb() { return Yii::$app->get('db ?>'); } /** * {@inheritdoc} */ public function rules() { return []; } /** * {@inheritdoc} */ public function attributeLabels() { return [ $label): ?> " . $generator->generateString($label) . ",\n" ?> ]; } $relation): ?> /** * @return \yii\db\ActiveQuery */ public function get() { } ns === $generator->queryNs) ? $queryClassName : '\\' . $generator->queryNs . '\\' . $queryClassName; echo "\n"; ?> /** * {@inheritdoc} * @return the active query used by this AR class. */ public static function find() { return new (get_called_class()); } }