fixture.php 619 Bytes
Newer Older
irving's avatar
irving committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<?php
/**
 * This is the template for generating the fixture file for a model class.
 * The following variables are available in this template:
 * - $table: the table schema
 */
?>
<?php echo "<?php\n"; ?>

return array(
	/*
	'sample1'=>array(
<?php foreach($table->columns as $name=>$column) {
	if($table->sequenceName===null || $table->primaryKey!==$column->name)
		echo "\t\t'$name' => '',\n";
} ?>
	),
	'sample2'=>array(
<?php foreach($table->columns as $name=>$column) {
	if($table->sequenceName===null || $table->primaryKey!==$column->name)
		echo "\t\t'$name' => '',\n";
} ?>
	),
	*/
);