12345678910111213141516171819202122232425 |
- <?php
- namespace yiiunit\extensions\mongodb\data\ar;
- /**
- * @property \MongoDB\BSON\ObjectID|string $_id
- * @property string $name
- * @property float $price
- */
- class Item extends ActiveRecord
- {
- public static function collectionName()
- {
- return 'item';
- }
- public function attributes()
- {
- return [
- '_id',
- 'name',
- 'price',
- ];
- }
- }
|