Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
atk4
data
Model
atomic
atk4\data\Model::atomic PHP Method
Model Class Documentation
Datei anzeigen
Open project: atk4/data
atomic()
public
method
Atomic executes operations within one begin/end transaction, so if the code inside callback will fail, then all of the transaction will be also rolled back.
public
atomic
(
callable
$f
) :
mixed
$f
callable
return
mixed
public function atomic($f) { return $this->persistence->atomic($f); }
Model
__clone
__construct
__debugInfo
_hasReference
_init
_rawInsert
_unset
action
addCondition
addExpression
addField
addFields
addRef
allFields
asModel
atomic
delete
duplicate
each
export
get
getIterator
getRef
getRefs
hasMany
hasOne
hasRef
import
init
insert
isDirty
join
leftJoin
load
loadAny
loadBy
loaded
newInstance
normalizeFieldName
offsetExists
offsetGet
offsetSet
offsetUnset
onlyFields
rawIterator
ref
refLink
refModel
reload
save
saveAndUnload
saveAs
set
setDefaults
setLimit
setOrder
tryLoad
tryLoadAny
tryLoadBy
unload
withID
withPersistence