XenForo
Administrative
- Thread starter
- Admin
- #1
I'm in need of some guidance when it comes to setting up multiple entity relations when extending a class (User in this instance).
This is my current User entity in my addon that I am extending
PHP:
Read more
ادامه مطلب...
This is my current User entity in my addon that I am extending
PHP:
Code:
<?php
namespace TaylorJ\Blogs\Entity;
use XF\MVC\Entity\Structure;
class User extends \XF\Entity\User
{
public static function getStructure(\XF\Mvc\Entity\Structure $structure)
{
$structure = parent::getStructure($structure);
$structure->relations = [...
Read more
ادامه مطلب...