Resolve meta data.

@param int $id

@return mixed
357409
public function resolveMeta($action, $arguments)
    {
        // Model meta data is saved as single record. In this
        // case meta data key is always model slug, so to
        // be sure, we overwrite this argument.
        if ($this->isPreservedAs('single')) {
            $arguments[1] = $this->getSlug();

            return $this->{"{$action}Meta"}($arguments);
        }

        // Model meta data is saved as multiple records. Unserialize
        // Singularity array string, before returning the results.
        if ($this->isPreservedAs('multiple')) {
            return $this->unserializeCollection($this->{"{$action}Meta"}($arguments));
        }

        // Model meta don't have any preserve settings.
        // Just process action and nothing more.
        return $this->{"{$action}Meta"}($arguments);
    }
978840
public static function findById($id)
    {
        if (!$id || strlen($id) != 24) {
            return null;
        }
        $instance = static::entity()->get(get_called_class(), $id);
        if ($instance) {
            return $instance;
        }
        $mongo = static::entity()->getDatabase();
        $data = $mongo->findOne(static::$collection, ['_id' => $mongo->id($id)]);
        if (!$data) {
            return null;
        }
        $instance = new static;
        $data['__webiny_db__'] = true;
        $instance->populate($data);

        return static::entity()->add($instance);
    }
963679
private function resolveObject($collection, $id)
    {
        return $this->connection->selectCollection($this->databaseName, $collection)->findOne(['_id' => $id]);
    }
869425
public function get_metadata($id)
	{
		if ( ! file_exists($this->_cache_path.$id))
		{
			return FALSE;
		}

		$data = unserialize(file_get_contents($this->_cache_path.$id));

		if (is_array($data))
		{
			$mtime = filemtime($this->_cache_path.$id);

			if ( ! isset($data['ttl']))
			{
				return FALSE;
			}

			return array(
				'expire' => $mtime + $data['ttl'],
				'mtime'	 => $mtime
			);
		}

		return FALSE;
	}
379781
public function findMeta($id, $key)
    {
        $meta = $this->getMeta($id);

        if (is_string($result = $meta->get($key))) {
            return $result;
        }

        return new Collection($result);
    }
772210
public function getById($id)
    {
        $model = $this
            ->prepareQuery()
            ->where($this->model->getTable() . '.id', $id)
            ->first();

        if (empty($model))
            return null;

        $model = $this->addPermissionsForModel($model);

        return $this->formatModel($model);
    }
952750
public function getById($id)
    {
        $modelResult = $this->getRequest()->request(
            'GET',
            $this->getRequestUrl(sprintf('models/%s', $id))
        );

        return $this->getModelFromResult($modelResult);
    }
129257
public function getClientDetailsById($id)
	{
		$database = \App::get('db');

		$sql = "SELECT * FROM `#__developer_applications`
				WHERE `id`=" . $database->quote($id);
		$database->setQuery($sql);
		return $database->loadAssoc();
	}
39815
public static function findById($id)
    {
        $data = X::app()->db->table(self::tableName())->findById($id, self::$pk);
        if(!$data){
            return false;
        }
        return new static($data,false);
    }
1124453
public function resolveId($id)
    {
        return $this->aliases->has($id)
            ? $this->aliases->getId($id)
            : $id;
    }
1302501
public function get($id)
	{
		$data = $this->_get($id);
		return is_array($data) ? $data['data'] : FALSE;
	}
1333159
public function getRecipeById($id)
    {
        $result = [
            'className' => (isset($this->classNameById[$id])) ?
                $this->classNameById[$id] :
                null,
            'arguments' => (isset($this->argumentsById[$id])) ?
                $this->argumentsById[$id] :
                null,
            'constructor' => (isset($this->constructorById[$id])) ?
                $this->constructorById[$id] :
                null,
            'dependencies' => (isset($this->dependenciesById[$id])) ?
                $this->dependenciesById[$id] :
                null,
        ];

        return $result;
    }
409625
protected function getRawConfig(/*# string */ $id)
    {
        $this->config_resolver->enableDeReference(false);
        $data = $this->config_resolver->get($id);
        $this->config_resolver->enableDeReference(true);
        return $data;
    }
762990
public function getIdsDependingOn($id)
    {
        $resolved = [];
        $unresolved = [];
        $this->dependencyResolve($id, $resolved, $unresolved);

        return array_keys($resolved);
    }
1220692
private function resolveInstance(string $id)
    {
        if (Validator::key($id)->validate($this->instances)) {
            return $this->instances[$id];
        }
        return $this->resolveAutomaticResolvable($id);
    }
214417
public function fetchById($id)
    {
        $data = [];
        foreach ($this->globDataFile($id) as $filename) {
            $data = array_merge($data, $this->fetchFileData($id, $filename));
        }
        return $this->resultAsModel($data);
    }
1041619
public static function getByID($id)
    {
        if ($id) {
            $app = Application::getFacadeApplication();
            $em = $app->make(EntityManagerInterface::class);
            $result = $em->find(ThumbnailTypeEntity::class, $id);
        } else {
            $result = null;
        }

        return $result;
    }