Trait Manipulation
Direct Known Users
MvcCore\Ext\Models\Db\Model\Features, MvcCore\Ext\Models\Db\Models\MySqls\Features, MvcCore\Ext\Models\Db\Models\PgSqls\Features, MvcCore\Ext\Models\Db\Models\SQLites\Features, MvcCore\Ext\Models\Db\Models\SqlSrvs\FeaturesLocated at ext-model-db/src/MvcCore/Ext/Models/Db/Model/Manipulation.php
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
protected static
boolean
|
#
editSave( MvcCore\Ext\Models\Db\Model $context, boolean|null $createNew, integer $propsFlags, array $metaDataCollections )
Process instance database SQL INSERT or UPDATE by automaticly founded key data.
Return |
protected static
boolean
|
#
editIsNew( MvcCore\Ext\Models\Db\Model $context, integer $propsFlags, array $metaDataCollections )
Try to determinate, if model instance is new or already existing in
database by property with anotated auto increment column.
If property is not initialized or if it has |
protected static
boolean
|
#
editInsert( MvcCore\Ext\Models\Db\Model $context, integer $propsFlags, array $metaDataCollections )
Process instance database SQL INSERT by automaticly founded key data.
Return |
protected static
boolean
|
#
editUpdate( MvcCore\Ext\Models\Db\Model $context, integer $propsFlags, array $metaDataCollections )
Process instance database SQL UPDATE by automaticly founded key data.
Return |
protected static
boolean
|
#
editDelete( MvcCore\Ext\Models\Db\Model $context, integer $propsFlags, array $metaDataCollections )
Process instance database SQL DELETE by automaticly founded key data.
Return |
protected static
array
|
#
getEditMetaDataCollections( integer $propsFlags = 0 )
Complete all necessary meta data collections for any edit operation from cache, once. |
protected static
array
|
#
getEditAllKeysData( MvcCore\Ext\Models\Db\Model $context, array $metaData, array $primaryKeyColumnsIndexes, array $uniqueKeyColumnsIndexes )
Try co complete instance key data (for SQL WHERE condition) by anotated properties with keys. First, try to complete property/properties with primary key(s) anotation, if there is/are value(s) and if it is not possible, then try to complete property/properties with unique key anotation, if there value(s) exist(s). If there is not possible to complete any key data, thrown an invalid argument excaption. |
protected static
array
|
#
getEditKeysData( MvcCore\Ext\Models\Db\Model $context, array $metaData, array $keyColsIndexes )
Try to complete key data array from instance for given metadata anotation collection about primary or unique keys. Return result as boolean about success key identification and array with collected key data. |