Created
August 27, 2010 02:46
-
-
Save lingo/552684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Load a YAML fixture file into the Database. | |
* Good for quick dump/restore for testing, or for scaffolding a database. | |
*/ | |
class PermanentFixtureTask extends BuildTask { | |
public function run($request) { | |
$yaml = new YamlFixture($request->requestVar('file')); | |
$yaml->saveIntoDatabase(); | |
print "Done."; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment