Hey all -
Pretty basic question, but I can't seem to find the answer anywhere.
I'm creating a set of test fixtures, and for some reason it keeps
pluralizing "faculty" to "faculties". What can I do to prevent this?
Here's my code:
app/models/faculty.php
<?php
class Faculty extends AppModel {
var $name = "Faculty";
var $primaryKey = "id";
var $belongsTo = "Event";
var $useTable = "faculty";
}
?>
app/tests/fixtures/faculty_fixture.php
<?php
class FacultyFixture extends CakeTestFixture {
var $name = "FacultyFixture";
var $import = "Faculty";
var $records = array(
array('id' => '1', 'event_id' => '1', 'headshot' =>
'hs.1.jpg', 'name' => 'Dr. Willem Wildbrigade', 'title'=>'Master of
the Universe', 'biography' => 'biography text')
);
}
?>
TIA -
leo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---