コード例 #1
0
ファイル: Orders.php プロジェクト: usky105/baseshop1
 public function getCustomer()
 {
     return $this->hasOne(Customer::className(), ['id' => 'action_user']);
 }
コード例 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCustomer()
 {
     return $this->hasOne(Customer::className(), ['customer_user_name' => 'user_name']);
 }
コード例 #3
0
ファイル: Customer.php プロジェクト: jaybril/www.juice.com
 public function getParent()
 {
     return $this->hasOne(Customer::className(), ['id' => 'parentId']);
 }