public function getTypeo() { return $this->hasOne(PaymentType::className(), array('id' => 'type')); }