예제 #1
0
 /**
  * Check if entity exists in source
  *
  * @return bool
  */
 public function exists()
 {
     try {
         $sql = $this->compiler->tableExists($this->name);
         $this->pdo->query($sql);
     } catch (\PDOException $e) {
         return false;
     }
     return true;
 }