Свойство | Тип | Описание | |
---|---|---|---|
$_disableEvents | @codingStandardsIgnoreStart |
Метод | Описание | |
---|---|---|
bsonUnserialize ( array $data ) | Pass the values from the BSON document back to the object. | |
delete ( ) | Deletes a model instance. Returning true on success or false otherwise. | |
findById ( $id ) | ||
findFirst ( array $parameters = null ) | ||
fireEventCancel ( string $eventName ) : boolean | Fires an internal event that cancels the operation | |
save ( ) | Creates/Updates a collection based on the values in the attributes | |
setId ( mixed $id ) | Sets a value for the _id property, creates a MongoId object if needed | |
summatory ( $field, $conditions = null, $finalize = null ) |
Метод | Описание | |
---|---|---|
_exists ( $collection ) | @codingStandardsIgnoreStart | |
_getResultset ( $params, Phalcon\Mvc\CollectionInterface $collection, $connection, $unique ) | @codingStandardsIgnoreStart |
protected static _getResultset ( $params, Phalcon\Mvc\CollectionInterface $collection, $connection, $unique ) | ||
$collection | Phalcon\Mvc\CollectionInterface |
public bsonUnserialize ( array $data ) | ||
$data | array |
$robot = Robots::findFirst();
$robot->delete();
foreach (Robots::find() as $robot) {
$robot->delete();
}
public delete ( ) |
public fireEventCancel ( string $eventName ) : boolean | ||
$eventName | string | |
Результат | boolean |
public save ( ) |
public static summatory ( $field, $conditions = null, $finalize = null ) |