<?php
namespace Claromentis\Projects\Entity;

$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_c4d674abe9291be143b224c411958" . "fcf" => base64_decode("b3" . "du" . "ZX" . "I="), "_0ea4e32b5796" . "3ac0cb3057e03" . "e9aef64" => base64_decode("a" . "W" . "Q" . "="), "_27ea6380ba99bf298" . "d5d821449632f07" => base64_decode("dG9waWNfaW" . "Q="), "proj" . "ect_" . "id" => base64_decode("cHJvamV" . "jdF9pZA" . "=="));
use Analogue\ORM\Entity;
use ClaAggregation;
use Claromentis\Core\ORM\Behaviors\Casts;
use Claromentis\Core\Services;
use Claromentis\People\Entity\User;
use Claromentis\Projects\ProjectsPlugin;
use Date;
use ProxyManager\Proxy\LazyLoadingInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
















class Topic extends Entity implements ClaAggregation
{
    const AGGREGATION = 155;
    use Casts;
    protected $casts = ['id' => 'int', 'project_id' => 'int', 'description' => 'clob', 'owner_id' => 'int', 'created' => 'date', 'modified' => 'date', 'pinned' => 'int'];
    
    
    
    
    
    
    public function GetAggregation()
    {
        return self::AGGREGATION;
    }
    
    
    
    
    
    
    public function GetId()
    {
        return $this->attributes[$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_0ea4e32b579" . "63ac0cb3057e" . "03e9aef64"]];
    }
    
    
    
    
    
    
    
    
    
    public function GetOwnerAttribute()
    {
        $_c4d674abe9291be143b224c411958fcf = $this->attributes[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_c4d674abe9291be143b224c411" . "958fcf"]] ?? null;
        if ($_c4d674abe9291be143b224c411958fcf instanceof LazyLoadingInterface) {
            $_c4d674abe9291be143b224c411958fcf->initializeProxy();
            if (!$_c4d674abe9291be143b224c411958fcf->isProxyInitialized()) {
                $this->attributes[$GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_c4d674abe9291be143b224c41" . "1958fcf"]] = $_c4d674abe9291be143b224c411958fcf = null;
            }
        }
        return $_c4d674abe9291be143b224c411958fcf;
    }
    
    
    
    
    
    
    
    
    
    public function GetUrl()
    {
        
        
        $url_generator = Services::I()->{UrlGeneratorInterface::class};
        return $url_generator->generate(ProjectsPlugin::VIEW_TOPIC_ROUTE, [$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["pro" . "jec" . "t_i" . "d"] => $this->attributes[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["project_" . "id"]], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_27ea6380ba99bf298d5d821" . "449632f07"] => $this->attributes[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_0ea4e32" . "b57963ac" . "0cb3057e" . "03e9aef6" . "4"]]]);
    }
}