Get row.

@param string    $column
@param multitype $value

@return \Dal\Model\AbstractModel
546050
public function fetchRow($column, $value)
    {
        $where = array($column, $value);

        return $this->tableGateway->select($where)->current();
    }
687714
public function getRow($index = 0, $column = null)
    {
        if (is_string($index)) {
            $column = $index;
            $index = 0;
        }

        $rows = $this->getRows();

        if (!is_null($column) && isset($rows[$index][$column])) {
            return $rows[$index][$column];
        } else if (is_null($column) && isset($rows[$index])) {
            return $rows[$index];
        }

        return null;
    }
133542
protected static function whereExecute($column, $operator, $value, $type)
    {
        $self      = self::getInstance();

        if (is_array($column)) {
            return $self->makeArrayOfWhere($column, $type);
        } else {
            return $self->makeStringOfWhere($column, $operator, $value, $type);
        }

        return $self;
    }
310934
private function querySlaveTable($table, $column, $value)
    {
        return $this->db->select('*')
                        ->from($table)
                        ->whereEquals($column, $value)
                        ->getStmt()
                        ->fetch();
    }
875456
public function getData(int $row, $column)
    {
        return $this->query->getResult()->getData($row, $column);
    }
1130104
public function getWhere($column, $value, array $options = [])
    {
        $query = $this->createBaseBuilder($options);

        $query->where($column, $value);

        return $query->get();
    }
434533
public function increment($column, $value)
    {
        $this->params[':column'] = $value;
        $query = "UPDATE `{$this->table}` {$this->join} SET `$column` = `$column` + :$column";
        if ($this->condition) {
            $query .= " WHERE {$this->condition}";
        }
        if ($this->limit) {
            $query .= " LIMIT {$this->limit}";
        }

        return $this->connection->execQuery($query, $this->params);
    }
745249
public function postField($column, $value = null)
    {
        // If the column is an array, we will assume it is an array of key-value pairs
        // and can add them each as a post field.
        if (is_array($column)) {
            return $this->postFieldNested(function ($query) use ($column) {
                foreach ($column as $key => $value) {
                    $query->postField($key, $value);
                }
            });
        }

        $this->body[] = compact('column', 'value');

        return $this;
    }
962409
public function findBy($columns, $value = null)
    {
        $this->loadAll();

        if (!is_array($columns)) {
            $columns = array($columns => $value);
        }

        $result = array();
        foreach ($this->allUnits as $u) {
            $status = true;
            foreach ($columns as $column => $value) {
                $unitValue = call_user_func(array($u, 'get'.ucfirst($column)));
                $status &= is_array($value) ? in_array($unitValue, $value) : $unitValue == $value;
            }
            if ($status) {
                $result[] = $u;
            }
        }

        return $result;
    }
63610
public function pull($column, $value = null)
    {
        $this->compileWheres();
        $result = $this->query->update([
            $column => r\row($column)->difference([$value]),
        ])->run();

        return 0 == (int) $result['errors'];
    }
553151
public function getRow($index = 0, $column = null)
    {
        //argument test
        Argument::i()
            //Argument 1 must be a string or int
            ->test(1, 'string', 'int')
            //Argument 2 must be a string or null
            ->test(2, 'string', 'null');
        
        if (is_string($index)) {
            $column = $index;
            $index = 0;
        }
        
        $rows = $this->getRows();
        
        if (!is_null($column) && isset($rows[$index][$column])) {
            return $rows[$index][$column];
        } else if (is_null($column) && isset($rows[$index])) {
            return $rows[$index];
        }
        
        return null;
    }
279665
public function getPdoType($type, $value)
    {
        if (null === $value) {
            $type = \PDO::PARAM_NULL;
        } else {
            switch ($type) {
                case AbstractEntity::TYPE_BOOL:
                    $type = \PDO::PARAM_BOOL;
                    break;
                case AbstractEntity::TYPE_INT:
                    $type = \PDO::PARAM_INT;
                    break;
                default:
                    $type = \PDO::PARAM_STR;
            }
        }

        return $type;
    }
443776
protected function _getrow($type, $value, &$attributes)
    {
        if( $row = ($this->settings['getrow'] ?? NULL) )
        {
            $rowval = $row->{$attributes['name']} ?? NULL;

            if( $type === 'textarea' || $type === 'select' )
            {
                return $value ?: $rowval;
            }

            $attributes['value'] = $value ?: $rowval;
            
            // For radio
            if( $type === 'radio' && $value == $rowval )
            {
                $attributes['checked'] = 'checked';
            }

            // For checkbox
            if( $type === 'checkbox' )
            {
                if( Json::check($rowval) )
                {
                    $rowval = json_decode($rowval, true);

                    if( in_array($value, $rowval) )
                    {
                        $attributes['checked'] = 'checked';
                    }
                }
                else
                {
                    if( ! empty($rowval) )
                    {
                        $attributes['checked'] = 'checked';
                    }            
                }
            }
        }

        return $value;
    }
893136
public function findSoft($column, $value)
    {
        return $this->getFirstSoft((is_null($column) ? $this->key : $column) . ' = ?', [$value]);
    }
1014736
public function findBy($field, $value, $columns = ['*'])
    {
        $this->newQuery();

        return $this->query->where($field, '=', $value)->first($columns);
    }
819658
public function getValue($row, $column)
    {
        $row = $this->validateRowInRange($row);
        $column = $this->validateColumnInRange($column);

        return $this->grid[$row - 1][$column - 1];
    }
563562
protected function one($model, $column, $value)
    {
        $object = $model::where($column, '=', $value);

        if (!is_null($object)) {
            if (count($object) > 0) {
                return $object[0];
            }
        }
    }