• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

delete from x with thread_id when thread is deleted

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I have a table x; it has a field thread_id

if thread 212 is deleted (or merged?!), I want to delete the column in x where thread_id is 212

i found entity_post_delete, but no entity_thread_delete


i found a listener with something like:

Code:

کد:
    public static function threadEntityPostDelete(\XF\Mvc\Entity\Entity $entity)
    {
        $entity->db()->delete('xf_r9_example', 'thread_id = ?', $entity->thread_id);
    }

Do we have another example to delete something?
resource and...

Read more
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا