/** * @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(); }
/** * 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(); }
/** * 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(); }