Find select element.

@param string $id        element identifier
@param array  $relations tag relations (near, in, under)

@return Accessor\Form\SelectAccessor
766963
public function findSelect($id = null, array $relations = array())
    {
        return new Accessor\Form\SelectAccessor($id, $relations, $this->con);
    }
766140
public function find($id, $attributes = ['*'])
    {
        return $this->executeCallback(get_called_class(), __FUNCTION__, func_get_args(), function () use ($id, $attributes) {
            return $this->prepareQuery($this->createModel())->find($id, $attributes);
        });
    }
160978
public function relations(array $relations)
    {
        foreach ($relations as $column1 => $column2) {
            $this->relation($column1, $column2);
        }

        return $this;
    }
311893
public function find($id)
    {
        $data = $this->client->get(Inflector::pluralize($this->getResourceName()).'/'.$id);

        return $this->fromArray(reset($data));
    }
492249
public function find($id, $columns = ['*'])
    {
        return is_array($id) ? $this->findMany($id, $columns) : $this->where(
            $this->getRelated()->getQualifiedKeyName(), '=', $id
        )->first($columns);
    }
1309061
public function findTableHeader($id = null, array $relations = array())
    {
        return new Accessor\Table\TableHeaderAccessor($id, $relations, $this->con);
    }
844203
public function findParentNodesByChildId($id)
	{
        // To be returned
        $result = array();

        $rl = $this->getRelations();
        $data = $rl[RelationBuilder::TREE_PARAM_ITEMS];

        // If can't find, then return empty array
        if (!isset($data[$id])) {
            return array();
        }

        $current = $data[$id];
        $parentId = $current[RelationBuilder::TREE_PARAM_PARENT_ID];

        while (isset($data[$parentId])) {
            $current = $data[$parentId];
            $parentId = $current[RelationBuilder::TREE_PARAM_PARENT_ID];

            array_push($result, $current);
        }

        return $result;
    }
507030
public function getById($id)
    {
        $database = DatabaseLayer::getInstance();
        $select = $database->select($this->getTableName(), $this->getTableAlias());
        $select->fields($this->getTableAlias());
        $select->condition($this->getIDField(), $id);
        $results = $select->execute(get_called_class());
        $result = end($results);
        return $result;
    }
805200
public function findCell($id = null, array $relations = array())
    {
        return new Accessor\Table\CellAccessor($id, $relations, $this->con);
    }
252852
public function find($id, $properties = array('*')) {
        // If the dev did not specify the $id as an int it would break
        // so we cast it anyways.

        if (is_array($id)) {
            return $this->findMany(array_map(function($id) {
                                return (int) $id;
                            }, $id), $properties);
        } else {

            $id = $id;
        }

        $this->query->where($this->model->getKeyName(), '=', $id);

        return $this->first($properties);
    }
227654
public function findTrashed($id, $related = [])
    {
        return $this->model->onlyTrashed()->with($related)->find($id);
    }
265855
public function findLabel($id = null, array $relations = array())
    {
        return new Accessor\LabelAccessor($id, $relations, $this->con);
    }
734616
public function findOption($id = null, array $relations = array())
    {
        return new Accessor\Form\OptionAccessor($id, $relations, $this->con);
    }
286147
public static function findById($id)
    {
        try {
            $tableName = self::getTableName();
            $conn = self::getConnection();

            $stmt = $conn->query('SELECT * FROM '.$tableName.' WHERE id='.$id);

            return self::find($stmt);
        }
        catch(PDOException $pe) {
            return $pe->getMessage();
        }
        catch(Exception $e) {
            return $e->getMessage();
        }
    }
199288
public static function find( $table, $id, $key = null, $handler = null ) 
	{
		return Query::select( $table )->find( $id, $key, $handler );
	}
556167
public function findById($id)
    {
        if (!isset($id) || is_null($id)) {
            return null;
        }
        $builder = $this->em->createQueryBuilder();

        $tag = $builder
            ->select('t')
            ->from($this->tagClass, 't')

            ->where($builder->expr()->eq('t.id', $id))

            ->getQuery()
            ->getOneOrNullResult();

        return $tag;
    }
1183246
public function find($id, $inDeleted = false)
    {
        $qb = $this->db->createQueryBuilder();

        $qb->select($this->getSelect($this->profile))
            ->from($this->table, 't')
            ->where('t.'.$this->primaryKey." = :id");

        $this->addJoins($qb, $this->getJoins($this->profile));
        $params = $this->addFilters($qb, $this->getFilters($this->profile));
        $this->addGrouping($qb, $this->getGroupings($this->profile));

        $params['id'] = $id;

        return $this->getRow($qb, $params, $inDeleted);
    }