Mvc\ModelInterface::assign

abstract public assign (array $data, [mixed $dataColumnMap], [mixed $whiteList]) ...

Mvc\Model::__set

public __set (string $property, mixed $value) Magic method to assign values to the the model

Mvc\Model::__get

public Phalcon\Mvc\Model\Resultset | Phalcon\Mvc\Model __get (string $property) Magic method to get related records using the relation alias as a property

Mvc\Model::__isset

public __isset (mixed $property) Magic method to check if a property is a valid relation

Mvc\Model::validationHasFailed

public validationHasFailed () Check whether validation process has generated any messages use Phalcon\Mvc\Model; use Phalcon\Mvc\Model\Validator\ExclusionIn as ExclusionIn; class Subscriptors extends Model { public function validation() { $validator = new Validation(); $validator->validate('status', new ExclusionIn(array( 'domain' => array('A', 'I') )); return $this->validate($validator); } }

Mvc\Model::__callStatic

public static mixed __callStatic (string $method, array $arguments) Handles method calls when a static method is not implemented

Mvc\Model::__call

public mixed __call (string $method, array $arguments) Handles method calls when a method is not implemented

Mvc\Model::unserialize

public unserialize (mixed $data) Unserializes the object from a serialized string

Mvc\Model::writeAttribute

public writeAttribute (mixed $attribute, mixed $value) Writes an attribute value by its name $robot->writeAttribute('name', 'Rosey');

Mvc\Model::update

public update ([mixed $data], [mixed $whiteList]) Updates a model instance. If the instance doesn’t exist in the persistence it will throw an exception Returning true on success or false otherwise. //Updating a robot name $robot = Robots::findFirst("id=100"); $robot->name = "Biomass"; $robot->update();