getTable()
getTable() : string
Returns table name mapped in the model
query(string $alias = null) : \ManaPHP\Data\QueryInterface
string | $alias |
paginate(array $filters = array(), array $options = null, array $fields = null) : \ManaPHP\Data\Paginator
Allows to query a set of records that match the specified conditions
array | $filters | |
array | $options | |
array | $fields |
select(array|string $fields = array(), string $alias = null) : \ManaPHP\Data\QueryInterface
array|string | $fields | |
string | $alias |
where(integer|string|array $filters) : \ManaPHP\Data\QueryInterface
integer|string|array | $filters |
search(array $filters) : \ManaPHP\Data\QueryInterface
array | $filters |
newQuery() : \ManaPHP\Data\QueryInterface
belongsTo(string $thatModel, string $thisField = null) : \ManaPHP\Data\Relation\BelongsTo
string | $thatModel | |
string | $thisField |
hasOne(string $thatModel, string $thatField = null) : \ManaPHP\Data\Relation\HasOne
string | $thatModel | |
string | $thatField |
hasMany(string $thatModel, string $thatField = null) : \ManaPHP\Data\Relation\HasMany
string | $thatModel | |
string | $thatField |
hasManyToMany(string $thatModel, string $pivotModel) : \ManaPHP\Data\Relation\HasManyToMany
string | $thatModel | |
string | $pivotModel |
hasManyOthers(string $thatModel, string $thisFilter = null) : \ManaPHP\Data\Relation\HasManyOthers
string | $thatModel | |
string | $thisFilter | =key(get_object_vars(new static)) |
belongsToMany(string $thatModel, string $pivotModel) : \ManaPHP\Data\Relation\HasManyToMany
alias of hasManyToMany
string | $thatModel | |
string | $pivotModel |