コード例 #1
0
 /**
  * Return subscriptions by user
  *
  * @param User $user
  * @return array
  */
 function findByUser($user)
 {
     return Subscriptions::find(array('conditions' => array('user_id = ?', $user->getId())));
 }