daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $fav = (new UserChainObjectFavorite())->getObject();
  2. var_dump($fav->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql);
  3.    
  4. public function getObject()
  5. {
  6.     return $this->hasOne(ChainObject::className(), ['id' => 'object_id']);
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top