Mvc\Model::OP_CREATE

integer OP_CREATE

Mvc\Model::minimum

public static mixed minimum ([array $parameters]) Allows to get the minimum value of a column that match the specified conditions //What is the minimum robot id? $id = Robots::minimum(array('column' => 'id')); echo "The minimum robot id is: ", $id; //What is the minimum id of mechanical robots? $sum = Robots::minimum(array("type='mechanical'", 'column' => 'id')); echo "The minimum robot id of mechanical robots is ", $id;

Mvc\Model::maximum

public static mixed maximum ([array $parameters]) Allows to get the maximum value of a column that match the specified conditions //What is the maximum robot id? $id = Robots::maximum(array('column' => 'id')); echo "The maximum robot id is: ", $id, "\n"; //What is the maximum id of mechanical robots? $sum = Robots::maximum(array("type='mechanical'", 'column' => 'id')); echo "The maximum robot id of mechanical robots is ", $id, "\n";

Mvc\Model::jsonSerialize

public array jsonSerialize () Serializes the object for json_encode echo json_encode($robot);

Mvc\Model::hasSnapshotData

public hasSnapshotData () Checks if the object has internal snapshot data

Mvc\Model::hasChanged

public hasChanged ([string | array $fieldName]) Check if a specific attribute has changed This only works if the model is keeping data snapshots

Mvc\Model::getWriteConnectionService

public getWriteConnectionService () Returns the DependencyInjection connection service name used to write data related to the model

Mvc\Model::getWriteConnection

public getWriteConnection () Gets the connection used to write data to the model

Mvc\Model::getSource

public getSource () Returns table name mapped in the model

Mvc\Model::getSnapshotData

public getSnapshotData () Returns the internal snapshot data