public function checkModelSchemas($oldVersion = null)
    {
        Model::clearAllRepositories();

        /**
         * @var Model $class
         */
        /**
         * @var Model $object
         */
        foreach ($this->models as $class) {
            $object = new $class();

            $repository = $object->getRepository();
            $schema = $repository->getRepositorySchema();
            $schema->checkSchema($repository);

            $class::checkRecords($oldVersion, $this->version);
        }
    }
public function checkModelSchemas($oldVersion = null)
    {
        Model::clearAllRepositories();

        /**
         * @var Model $class
         */
        /**
         * @var Model $object
         */
        foreach ($this->models as $class) {
            $object = new $class();

            $repository = $object->getRepository();
            $schema = $repository->getRepositorySchema();
            $schema->checkSchema($repository);

            $class::checkRecords($oldVersion, $this->version);
        }
    }
public function checkModelSchemas ( $ oldVersion = null ) { Model :: clearAllRepositories ( ) ; /**
         * @var Model $class
         */ /**
         * @var Model $object
         */ foreach ( $ this -> models as $ class ) { $ object = new $ class ( ) ; $ repository = $ object -> getRepository ( ) ; $ schema = $ repository -> getRepositorySchema ( ) ; $ schema -> checkSchema ( $ repository ) ; $ class :: checkRecords ( $ oldVersion , $ this -> version ) ; } }
Asks all registered models to check if the back end schema needs corrected.

@param null|int|string $oldVersion This may be a schema version number int or a sha1 hash if per-model versioning is in use
Asks all registered models to check if the back end schema needs corrected .