MigrationsModel
class MigrationsModel extends ModelRepository (View source)
The MigrationsModel class.
Traits
Methods
Instantiate the model.
transactionStart
transactionCommit
transactionRollback
getMigrations
getVersions
getCurrentVersion
migrate
executeMigration
storeVersion
initLogTable
Method to get property Command
Method to set property command
Details
        in SingletonTrait at line         line 32
                static            SingletonTrait
    getInstance(array $args)
        
    
    getInstance
        in SingletonTrait at line         line 51
                static            mixed
    setInstance(object $instance)
        
    
    setInstance
        in ModelRepository at line         line 84
                            
    __construct(Structure|array $config = null, Structure $state = null, mixed $source = null)
        
    
    Instantiate the model.
        in ModelRepository at line         line 118
                            mixed
    __call(string $name, array $args = array())
        
    
    __call
        in ModelRepository at line         line 145
                            Structure
    getConfig()
        
    
    Method to get property Config
        in ModelRepository at line         line 157
                            ModelRepository
    setConfig(Structure $config)
        
    
    Method to set property config
        in ModelRepository at line         line 169
                            string
    getName()
        
    
    Method to get property Name
        in ModelRepository at line         line 195
                            ModelRepository
    setName(string $name)
        
    
    Method to set property name
        in ModelRepository at line         line 209
                            string
    getCacheId(string $id = null)
        
    
    getStoredId
        in ModelRepository at line         line 260
                            ModelRepository
    resetCache()
        
    
    resetCache
        in ModelRepository at line         line 285
                            Structure
    getState()
        
    
    Get the model state.
        in ModelRepository at line         line 297
                            void
    setState(Structure $state)
        
    
    Set the model state.
        in ModelRepository at line         line 310
                            mixed
    get(string $key, mixed $default = null)
        
    
    get
        in ModelRepository at line         line 323
                            $this
    set(string $key, mixed $value)
        
    
    set
        in ModelRepository at line         line 335
                            ModelRepository
    reset()
        
    
    reset
        in ModelRepository at line         line 349
                            boolean
    offsetExists(mixed $offset)
        
    
    Is a property exists or not.
        in ModelRepository at line         line 362
                            mixed
    offsetGet(mixed $offset)
        
    
    Get a property.
        in ModelRepository at line         line 376
                            void
    offsetSet(mixed $offset, mixed $value)
        
    
    Set a value to property.
        in ModelRepository at line         line 389
                            void
    offsetUnset(mixed $offset)
        
    
    Unset a property.
        in ModelRepository at line         line 401
                            Structure
    __get(string $name)
        
    
    __get
        in DatabaseModelTrait at line         line 36
                            void
    bootDatabaseModelTrait(ModelRepository $model)
        
    
    bootDatabaseModelTrait
        in DatabaseModelTrait at line         line 47
                            AbstractDatabaseDriver
    getDb()
        
    
    getDb
        in DatabaseModelTrait at line         line 69
                            DatabaseModelTrait
    setDb(AbstractDatabaseDriver $db)
        
    
    setDb
        in DatabaseModelTrait at line         line 88
                            DatabaseModelTrait
    transactionStart(boolean $nested = true)
        
    
    transactionStart
        in DatabaseModelTrait at line         line 102
                            DatabaseModelTrait
    transactionCommit(boolean $nested = true)
        
    
    transactionCommit
        in DatabaseModelTrait at line         line 116
                            DatabaseModelTrait
    transactionRollback(boolean $nested = true)
        
    
    transactionRollback
        in CliOutputModelTrait at line         line 35
                            CliOutputModelTrait
    out(string $text, bool $nl = true)
        
    
    out
        in CliOutputModelTrait at line         line 47
                            string
    in()
        
    
    in
        in CliOutputModelTrait at line         line 57
                            IOInterface
    getIo()
        
    
    Method to get property Io
        in CliOutputModelTrait at line         line 69
                            CliOutputModelTrait
    setIo(IOInterface $io)
        
    
    Method to set property io
        at line         line 52
                            array|DataSet
    getMigrations()
        
    
    getMigrations
        at line         line 93
                            array
    getVersions()
        
    
    getVersions
        at line         line 110
                            int
    getCurrentVersion()
        
    
    getCurrentVersion
        at line         line 129
                            void
    migrate(string $version = null)
        
    
    migrate
        at line         line 211
                            void
    executeMigration(Data $migrationItem, string $direction = 'up')
        
    
    executeMigration
        at line         line 273
                            void
    storeVersion(Data $migration, string $direction, string $start, string $end)
        
    
    storeVersion
        at line         line 300
                            void
    initLogTable(string $name = null)
        
    
    initLogTable
        at line         line 324
                            mixed
    getCommand()
        
    
    Method to get property Command
        at line         line 336
                            MigrationsModel
    setCommand(AbstractCommand $command)
        
    
    Method to set property command