fixture.php 594 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * This is the template for generating the fixture file for a model class.
  4. * The following variables are available in this template:
  5. * - $table: the table schema
  6. */
  7. ?>
  8. <?php echo "<?php\n"; ?>
  9. return array(
  10. /*
  11. 'sample1'=>array(
  12. <?php foreach($table->columns as $name=>$column) {
  13. if($table->sequenceName===null || $table->primaryKey!==$column->name)
  14. echo "\t\t'$name' => '',\n";
  15. } ?>
  16. ),
  17. 'sample2'=>array(
  18. <?php foreach($table->columns as $name=>$column) {
  19. if($table->sequenceName===null || $table->primaryKey!==$column->name)
  20. echo "\t\t'$name' => '',\n";
  21. } ?>
  22. ),
  23. */
  24. );