امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Just trying to wrap my head around a basic concept in XF2. What's the difference between (1) and (2)?
PHP:
And does the...
Read more
PHP:
کد:
//#1
$structure->relations['Bars'] = [
'entity' => 'ABC\DEF:Bar',
'type' => self::TO_MANY,
'conditions' => ['foo_id', '=', '$bar_id'],
'primary' => true
];
//#2
$structure->relations['Bars'] = [
'entity' => 'ABC\DEF:Bar',
'type' => self::TO_MANY,
'conditions' => ['foo_id', '=', '$bar_id'],
'primary' => false
];
And does the...
Read more
