Method |
Description |
|
__call ( string $method, Array $params = [] ) : mixed |
most of the magic in here makes it all work
- handles all getters and setters on columns and relations |
|
__construct ( mixed $val = null ) |
construct object and load supplied data or fetch data by supplied id |
|
addMeta ( array $data ) |
add an array of key/val to the metadata |
|
create ( BaseTable $obj ) : BaseTable |
create an object with a defined relation to this one. |
|
delete ( ) : void |
delete this object's record from self::$table and any associated meta data |
|
find ( array $constraints ) : ResultSet |
search for any number of records in self::$table |
|
getId ( ) : integer |
simple output object pk id |
|
getMeta ( string $field ) : mixed |
get a field of metadata |
|
hydrate ( array $data ) |
store supplied data and bring object state to current |
|
one ( array $constraints ) : BaseTable |
search for single record in self::$table |
|
save ( ) : void |
insert or update modified object data into self::$table and any associated metadata |
|
select ( string $qs, mixed $params = null ) : ResultSet |
execute a query in self::$table |
|
setMeta ( string $field, string $val ) |
set a field of metadata |
|
toArray ( ) : Array |
simple output object data as array |
|