Пример #1
0
 /**
  * @param AtomInterface $object
  *
  * @return \Platform\Photo\Model\PhotoCover
  */
 private function findCoverByObject(AtomInterface $object)
 {
     return app()->table('platform_photo_cover')->select()->where('object_id=?', $object->getId())->where('object_type=?', $object->getType())->one();
 }
Пример #2
0
 /**
  * Remove all like entry match `about_id`
  *
  * @param AtomInterface $about
  */
 public function removeAllByAbout(AtomInterface $about)
 {
     app()->table('platform_comment')->delete()->where('about_id=?', $about->getId())->execute();
 }
Пример #3
0
 /**
  * Remove all like entry match `about_id`
  *
  * @param AtomInterface $about
  */
 public function removeAllByAbout($about)
 {
     app()->table('platform_like')->delete()->where('about_id=?', $about->getId())->execute();
 }