repositoryExists() 공개 메소드

Check if the mappings repository exists.
public repositoryExists ( ) : mixed
리턴 mixed
예제 #1
0
파일: Run.php 프로젝트: sleimanx2/plastic
 protected function prepareDatabase()
 {
     $this->mapper->setConnection($this->option('database'));
     if (!$this->mapper->repositoryExists()) {
         $options = ['--database' => $this->option('database')];
         $this->call('mapping:install', $options);
     }
 }