コード例 #1
0
ファイル: ScreenShots.php プロジェクト: lryl/Lysine2
 public function getBug()
 {
     return BugTracker\Bugs::find($this->bug_id);
 }
コード例 #2
0
ファイル: Products.php プロジェクト: lryl/Lysine2
 public function selectBugs()
 {
     // select * from bugs where bug_id in (select bug_id from bugs_products where product_id = ?)
     $select = BugTracker\BugsProducts::select()->setCols('bug_id')->where('product_id = ?', $this->product_id);
     return BugTracker\Bugs::select()->whereIn('bug_id', $select);
 }
コード例 #3
0
ファイル: Accounts.php プロジェクト: lryl/Lysine2
 public function selectVerifiedBugs()
 {
     return BugTracker\Bugs::select()->where('verified_by = ?', $this->account_id);
 }