<?php
namespace Claromentis\People\Entity\Map;

$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"] ?: array()) + array("_35b54f844f87c3db31eca42284fe" . "fc39" => base64_decode("ZXhfYXJlYV" . "9pZA=="), "_adbffcf1128327d7a0a7cdc2164b7" . "256" => base64_decode("cm" . "9s" . "ZW" . "lk"), "useri" . "d" => base64_decode("dX" . "Nl" . "cm" . "lk"), "_fd3573b00e549f334fe5" . "f4d7536a53ca" => base64_decode("Z3JvdXBpZA" . "=="), "_c8f7f72ce1bbf96c92e1b24081df92" . "50" => base64_decode("dXNlcl9" . "yb2xlcw" . "=="), "_9e2e18ee304be5" . "4148839b0c0e58d" . "0db" => base64_decode("dXNlcl" . "9ncm91" . "cHM="));
use Claromentis\Core\ORM\Behaviors\MetadataMap;
use Claromentis\Core\ORM\EntityMap;
use Claromentis\People\Entity\Extranet;
use Claromentis\People\Entity\Group;
use Claromentis\People\Entity\Role;
use Claromentis\People\Entity\User;




class UserMap extends EntityMap
{
    use MetadataMap;
    protected $aggregation = User::AGGREGATION;
    protected $table = 'users';
    protected $attributes = ['id', 'intranetuser', 'username', 'password', 'a1_hash', 'firstname', 'surname', 'emailad', 'company', 'job_title', 'last_time_login', 'last_time_used', 'user_code', 'notify_on_checkin', 'notification_method', 'language', 'easy_find_num', 'skin', 'default_skin', 'password_policy', 'pp_change_next_time', 'pp_default', 'password_last_change', 'ldap_guid', 'login_frozen_time', 'login_attempts', 'login_frozen_until', 'whats_new_list', 'ext_type', 'ext_id', 'ex_area_id'];
    protected $mappings = ['ex_area_id' => 'extranet_id', 'emailad' => 'email', 'ext_type' => 'external_directory_id', 'ext_id' => 'external_directory_user_id'];
    protected function getAggregation()
    {
        return User::AGGREGATION;
    }
    
    
    
    
    
    
    
    
    public function extranet(User $_24e0e36600d6af77406a44bb618a6253)
    {
        return $this->belongsTo($_24e0e36600d6af77406a44bb618a6253, Extranet::class, $GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_35b54f844f87c3d" . "b31eca42284fefc3" . "9"]);
    }
    
    
    
    
    
    
    
    
    public function groups(User $_24e0e36600d6af77406a44bb618a6253)
    {
        return $this->belongsToMany($_24e0e36600d6af77406a44bb618a6253, Group::class, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_9e2e18e" . "e304be54" . "148839b0" . "c0e58d0d" . "b"], $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["us" . "er" . "id"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_fd3573b00e54" . "9f334fe5f4d75" . "36a53ca"]);
    }
    
    
    
    
    
    
    
    
    public function roles(User $_24e0e36600d6af77406a44bb618a6253)
    {
        return $this->belongsToMany($_24e0e36600d6af77406a44bb618a6253, Role::class, $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_c8f7f72" . "ce1bbf96" . "c92e1b24" . "081df925" . "0"], $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["use" . "rid"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_adbffcf1128327d7a0a7cdc21" . "64b7256"]);
    }
}