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 25
__construct(array $data, Selection $table)
No description
at line 33
void
setTable(Selection $table)
internal |
No description
at line 40
Selection
getTable()
internal |
No description
at line 46
__toString()
No description
at line 52
array
toArray()
No description
at line 63
mixed
getPrimary(bool $throw = true)
Returns primary key value.
at line 99
string
getSignature(bool $throw = true)
Returns row signature (composition of primary keys).
at line 109
ActiveRow|null
ref(string $key, string|null $throughColumn = null)
Returns referenced row.
at line 123
GroupedSelection
related(string $key, string|null $throughColumn = null)
Returns referencing rows collection.
at line 137
bool
update(iterable $data)
Updates row data.
at line 174
int
delete()
Deletes row from database.
at line 191
Iterator
getIterator()
No description
at line 201
void
offsetSet($column, $value)
No description
at line 207
mixed
offsetGet($column)
No description
at line 213
bool
offsetExists($column)
No description
at line 219
void
offsetUnset($column)
No description
at line 225
void
__set(string $column, mixed $value)
No description
at line 235
mixed
__get(string $key)
No description
at line 253
bool
__isset(string $key)
No description
at line 270
void
__unset(string $key)
No description
at line 277
bool
accessColumn(string|null $key, bool $selectColumn = true)
internal |
No description
at line 292
protected void
removeAccessColumn(string $key)
No description