Maslosoft Mangan API
Class PkManager
Primary key manager
Methods summary
public static
|
#
prepareAll( Maslosoft\Addendum\Interfaces\AnnotatedInterface $model, mixed[] $pkValues,
Prepare multi pk criteria |
public static
|
|
public static
|
#
prepareFromModel( Maslosoft\Addendum\Interfaces\AnnotatedInterface $model )
Create pk criteria from model data |
public static
MongoId|mixed|mixed[]
|
#
getFromModel( Maslosoft\Addendum\Interfaces\AnnotatedInterface $model )
Get primary key from model |
public static
string|string[]
|
|
public static
mixed[]
|
#
getFromArray( mixed[] $data, Maslosoft\Addendum\Interfaces\AnnotatedInterface $model )
Get pk criteria from raw array |
public static
mixed
|
#
applyToModel( Maslosoft\Addendum\Interfaces\AnnotatedInterface $model, MongoId|mixed|mixed[] $pkValue )
Apply pk value to model |
public static
boolean
|
#
compare( Maslosoft\Addendum\Interfaces\AnnotatedInterface|mixed[] $source, Maslosoft\Addendum\Interfaces\AnnotatedInterface|mixed[] $target )
Compare primary keys. For both params primary keys values or models can be used. Example use: < pre>
|
API documentation generated by ApiGen