Méthode |
Description |
|
__construct ( array $params ) |
Creates a new model object. |
|
__get ( $name ) |
|
|
__isset ( $name ) |
|
|
__set ( $name, $value ) |
|
|
__toString ( ) |
|
|
__unset ( $name ) |
|
|
_callAfterSaveCallbacks ( ) |
|
|
_callBeforeSaveCallbacks ( ) |
|
|
_getFields ( ) |
|
|
_resetModifiedFields ( ) |
|
|
alias ( $alias ) |
|
|
all ( ) : Model[] |
|
|
assignAttributes ( $attributes ) |
|
|
attributes ( ) |
|
|
count ( $where = '', $bindValues = null ) |
|
|
create ( array $attributes = [] ) : static |
|
|
createWithoutValidation ( array $attributes = [] ) : static |
Should be used for tests purposes only. |
|
definedAttributes ( ) |
|
|
delete ( ) |
|
|
find ( $where, $whereValues, array $orderBy = [], integer $limit = null, integer $offset = null ) : Model[] |
|
|
findById ( $value ) : static |
|
|
findByIdOrNull ( $value ) : static |
|
|
findBySql ( $nativeSql, array $params = [] ) : Model[] |
Executes a native sql and returns an array of model objects created by passing every result row to the model constructor. |
|
get ( $names, $default = null ) |
|
|
getFields ( ) |
|
|
getFieldsWithoutPrimaryKey ( ) |
|
|
getId ( ) |
|
|
getIdName ( ) |
|
|
getModelName ( ) |
|
|
getRelation ( $name ) : Relation |
|
|
getSequenceName ( ) |
|
|
getTableName ( ) |
|
|
innerJoin ( $relation, null $alias = null, array $on = [] ) : ModelQueryBuilder |
|
|
insert ( ) |
|
|
insertOrUpdate ( ) |
|
|
inspect ( ) |
Returns model object as a nicely formatted string. |
|
isNew ( ) |
|
|
join ( $relation, null $alias = null, string $type = 'LEFT', array $on = [] ) : ModelQueryBuilder |
|
|
metaInstance ( ) : static |
|
|
newInstance ( array $attributes ) : static |
|
|
nullifyIfEmpty ( ) |
|
|
queryBuilder ( null $alias = null ) : ModelQueryBuilder |
|
|
reload ( ) : static |
|
|
rightJoin ( $relation, null $alias = null, array $on = [] ) : ModelQueryBuilder |
|
|
select ( $columns, integer $type = PDO::FETCH_NUM ) : ModelQueryBuilder |
|
|
selectDistinct ( $columns, integer $type = PDO::FETCH_NUM ) : ModelQueryBuilder |
|
|
update ( ) |
|
|
updateAttributes ( $attributes ) |
|
|
using ( $relation, null $alias = null ) : ModelQueryBuilder |
|
|
where ( string $params = '', array $values = [] ) : ModelQueryBuilder |
|
|