public function findObjectByProp($type, $name, $value)
    {
        $type = $this->getFullType($type);
        if (class_exists($type)) {
            $table = $type::getCollection();
            $data = $this->mongodb->$table->findOne([$name => $value]);
            if ($data === null) {
                return null;
            }
            return new $type($data, $this->mongodb->$table, $this->cache);
        }
        return null;
    }