I'm working with fActiveRecord when I have the following:
$file = new File();
$file->setFilename("test");
$file->setCompanyid("1");
$file->store();
echo $file->getId();
The id is still blank. Any thoughts as to why?
Here is what I have for my File class
class File extends fActiveRecord {
protected function configure() {
}
}
And here is the print_r for $file
#!text/html
[values:protected] => Array
(
[id] =>
[companyid] => 1
[filename] => test
)
I'm not sure what I am doing wrong, any help would be great.
My database table has ID as a primary with Auto Increment I also have an index on companyid