McLotos McLotos Wed Sep 28 05:46:09 -0400 2016

Subject: Can't get GroupName using Associations

Hi!
Help pls!
I can't get a group name using associations.

namespace Lotos\Models;
use Lotos\Vendors\ActiveRecord\Model as Model;

class AclUser extends Model {
static $belongs_to = array(
array('Lotos\Models\AclGroupsName', 'select'=>'groupName')
);
}

namespace Lotos\Models;
use Lotos\Vendors\ActiveRecord\Model as Model;

class AclGroupsName extends Model {
static $has_many = array(
array('Lotos\Models\AclUser')
);
}

use Lotos\Models\AclUser as User;
$user = User:find_by_id('1');


McLotos McLotos Wed Sep 28 05:58:57 -0400 2016

Project is dead?

(1-1/1)