src/Leevel/Database/Ddd/Entity.php
protected function propValue(string $prop)
    {
        $prop = $this->normalize($prop);

        $this->validate($prop);

        if (!$this->isRelation($prop)) {
            return $this->propGetter($prop);
        }

        return $this->loadRelationProp($prop);
    }
protected function propValue(string $prop)
    {
        $prop = $this->normalize($prop);

        $this->validate($prop);

        if (!$this->isRelation($prop)) {
            return $this->propGetter($prop);
        }

        return $this->loadRelationProp($prop);
    }
返回属性.

@param string $prop

@return mixed