Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $fav = (new UserChainObjectFavorite())->getObject();
- var_dump($fav->prepare(Yii::$app->db->queryBuilder)->createCommand()->rawSql);
- public function getObject()
- {
- return $this->hasOne(ChainObject::className(), ['id' => 'object_id']);
- }
Add Comment
Please, Sign In to add comment