public function __construct($options = array())
{
parent::__construct($options);
if (!$this->class_name) {
$this->set_inferred_class_name();
}
//infer from class_name
if (!$this->foreign_key) {
$this->foreign_key = array(Inflector::instance()->keyify($this->class_name));
}
}