|
- <?php
-
-
-
- namespace common\models;
-
- use common\components\ActiveRecordCommon;
- use Yii;
-
-
- class DeliveryNote extends Document
- {
-
-
-
- public static function tableName()
- {
- return 'delivery_note';
- }
-
-
-
-
- public function getOrders()
- {
- return $this->relationOrders('id_delivery_note') ;
- }
-
-
-
- public static function defaultOptionsSearch()
- {
- return [
- 'with' => [],
- 'join_with' => ['user AS user_delivery_note', 'orders', 'producer'],
- 'orderby' => 'date ASC',
- 'attribute_id_producer' => 'delivery_note.id_producer'
- ];
- }
-
- }
|