public function getReciver()
 {
     return $this->embeddedOne(oOrganization::className(), 'reciver');
 }
 public function testQuotaData()
 {
     //simulate form input
     $post = ['oOrganization' => ['role' => 'buyer', 'Country' => '643', 'OrganizationName' => 'Sender organization "asd\'\'!@#$%^&* full name', 'ShortName' => "Sender '''''asdc !@#!@#\\''']'\\\\\\\\''''''\\'\\'\\'\\'\\'\\'organization", 'Phone' => '+7988878787', 'Email' => '*****@*****.**', 'Skype' => 'org_test', 'Site' => 'www.testSender.te', 'INN' => '252525454545', 'CreateDate' => date('Y-m-d')]];
     $organization = new oOrganization();
     $this->assertTrue($organization->load($post), 'Load organization POST data');
     $this->assertTrue($organization->validate(), 'Validate organization');
     $this->assertTrue($organization->save(), 'Create organization');
     $this->assertTrue($organization->Skype == 'org_test', 'Check Skype');
     $this->assertTrue($organization->save(), 'Update organization');
     $organizationFind = oOrganization::find()->where(['@rid' => $organization['@rid']])->one();
     $this->assertTrue($organizationFind->Skype == 'org_test', 'Check Skype');
     $this->assertTrue($organizationFind->ShortName == $post['oOrganization']['ShortName'], 'Check quoted data');
 }
 public function getExecutor()
 {
     return $this->hasOne(oOrganization::className(), 'executor');
 }