/** * Infers the $this->class_name based on $this->attribute_name. * * Will try to guess the appropriate class by singularizing * and uppercasing $this->attribute_name. * * @return void * @see attribute_name */ protected function setInferredClassName() { $utils = new Utils(); $singularize = $this instanceof HasMany ? true : false; $this->setClassName($utils->classify($this->attribute_name, $singularize)); }