PartKeepr\CoreBundle\Services\SystemService::getSchemaStatus PHP Method

getSchemaStatus() protected method

Checks if the schema is up-to-date. If yes, it returns "complete", if not, it returns "incomplete".
protected getSchemaStatus ( ) : string
return string Either "complete" or "incomplete"
    protected function getSchemaStatus()
    {
        $metadatas = $this->entityManager->getMetadataFactory()->getAllMetadata();
        $schemaTool = new SchemaTool($this->entityManager);
        $queries = $schemaTool->getUpdateSchemaSql($metadatas, true);
        if (count($queries) > 0) {
            return 'incomplete';
        } else {
            return 'complete';
        }
    }