ActiveRow
class ActiveRow implements IteratorAggregate, ArrayAccess
Represents database row with support for relations.
ActiveRow is based on the great library NotORM http://www.notorm.com written by Jakub Vrana.
Methods
No description
No description
Returns primary key value.
Returns row signature (composition of primary keys).
Returns referencing rows collection.
Updates row data.
Deletes row from database.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 24
__construct(array $data, Selection $table)
No description
at line 32
void
setTable(Selection $table)
internal |
No description
at line 39
Selection
getTable()
internal |
No description
at line 45
__toString()
No description
at line 51
array
toArray()
No description
at line 62
mixed
getPrimary(bool $throw = true)
Returns primary key value.
at line 98
string
getSignature(bool $throw = true)
Returns row signature (composition of primary keys).
at line 108
ActiveRow|null
ref(string $key, string|null $throughColumn = null)
Returns referenced row.
at line 122
GroupedSelection
related(string $key, string|null $throughColumn = null)
Returns referencing rows collection.
at line 136
bool
update(iterable $data)
Updates row data.
at line 173
int
delete()
Deletes row from database.
at line 190
Iterator
getIterator()
No description
at line 200
void
offsetSet($column, $value)
No description
at line 206
mixed
offsetGet($column)
No description
at line 212
bool
offsetExists($column)
No description
at line 218
void
offsetUnset($column)
No description
at line 224
void
__set(string $column, mixed $value)
No description
at line 234
mixed
__get(string $key)
No description
at line 252
bool
__isset(string $key)
No description
at line 269
void
__unset(string $key)
No description
at line 276
bool
accessColumn(string|null $key, bool $selectColumn = true)
internal |
No description
at line 291
protected void
removeAccessColumn(string $key)
No description