$mappings $mappings : array Defines field mappings in format array( 'field_1' => 'mapper_1', 'field_2' => array('mapper_1', 'mapper_2') ) Type array
addMapping() addMapping( $attributeName, $mappings) : $this Adds mapping for indicated attribute Parameters $attributeName $mappings Returns $this
removeMapping() removeMapping( $attributeName) : $this Removes mapping from indicated attribute Parameters $attributeName Returns $this
hasMapping() hasMapping( $attributeName) : boolean Determines if attribute has defined mapping Parameters $attributeName Returns boolean
resolveMapping() resolveMapping( $attributeName, $value) : mixed Filter value of indicated attribute by applying defined mappings Parameters $attributeName $value Returns mixed
readMapped() readMapped( $name) : mixed Returns mapped value of attribute Parameters $name Returns mixed
generateSlug() generateSlug( $string) : mixed Creates a slug to be used for pretty URLs Parameters $string Returns mixed
writeAttributes() writeAttributes( $attributes) Simple method that sets attributes from specified array Parameters $attributes
findById() findById( $id) : \Phalcon\Mvc\Model\ResultsetInterface Finds record by its ID Parameters $id Returns \Phalcon\Mvc\Model\ResultsetInterface