Revize 74a7dbca
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
system/libraries/ORM.php | ||
---|---|---|
|
||
if ( ! isset($this->db_applied['select']))
|
||
{
|
||
// Select all columns by default
|
||
$this->db->select($this->table_name.'.*');
|
||
// there are at least 1 ignored column, select columns manually
|
||
if (count($this->ignored_columns) > 0)
|
||
{
|
||
// removes ignored columns from all columnns
|
||
$columns = array_diff(
|
||
array_keys($this->table_columns),
|
||
$this->ignored_columns
|
||
);
|
||
|
||
// append table name to column name
|
||
foreach ($columns as $i => $column)
|
||
$columns[$i] = $this->table_name . '.' . $column;
|
||
|
||
$this->db->select($columns);
|
||
}
|
||
else
|
||
{
|
||
// Select all columns by default
|
||
$this->db->select($this->table_name.'.*');
|
||
}
|
||
}
|
||
|
||
if ( ! empty($this->load_with))
|
Také k dispozici: Unified diff
Merge from SVN branch 1.2.