Beispiel #1
0
 public function testFind()
 {
     $this->assertContains('Иванов', Domain::find()->notStrict()->where(['name_rus' => 'Иванов'])->one()->person_r);
 }
Beispiel #2
0
 /**
  * @return Domain[]
  * @throws Exception
  */
 public function domains()
 {
     if (empty($this->nic_hdl)) {
         return [];
     }
     return Domain::find()->where(['admin-o' => $this->nic_hdl])->all();
 }