private function save($path, $annotations) {
        if (!is_dir(DATA . 'mapper'))
            mkdir(DATA . 'mapper', 0755, TRUE);

        $content = var_export($annotations, true);
        file_put_contents($path, '<' . '?php' . "\n\t" . 'return ' . str_replace("=> \n", ' => ', $content) . ";");

        $this->saveModelTable($this->getTableName(), get_called_class());
    }
private function save($path, $annotations) {
        if (!is_dir(DATA . 'mapper'))
            mkdir(DATA . 'mapper', 0755, TRUE);

        $content = var_export($annotations, true);
        file_put_contents($path, '<' . '?php' . "\n\t" . 'return ' . str_replace("=> \n", ' => ', $content) . ";");

        $this->saveModelTable($this->getTableName(), get_called_class());
    }
private function save ( $ path , $ annotations ) { if ( ! is_dir ( DATA . 'mapper' ) ) mkdir ( DATA . 'mapper' , 0755 , TRUE ) ; $ content = var_export ( $ annotations , true ) ; file_put_contents ( $ path , '<' . '?php' . "\n\t" . 'return ' . str_replace ( "=> \n" , ' => ' , $ content ) . ";" ) ; $ this -> saveModelTable ( $ this -> getTableName ( ) , get_called_class ( ) ) ; }
Saves the annotations as table schema
@param string $path
@param array $annotations
Saves the annotations as table schema