Mvc\Model\MetaData\Session

Class Phalcon\Mvc\Model\MetaData\Session

extends abstract class Phalcon\Mvc\Model\MetaData

implements Phalcon\Mvc\Model\MetaDataInterface, Phalcon\DI\InjectionAwareInterface

Stores model meta-data in session. Data will erased when the session finishes. Meta-data are permanent while the session is active. You can query the meta-data by printing $_SESSION[‘$PMM$’]

$metaData = new Phalcon\Mvc\Model\Metadata\Session(array(
    'prefix' => 'my-app-id'
 ));

Constants

integer MODELS_ATTRIBU