model = $model; $this->$table = $table; $message = sprintf(__('Database table %s for model %s was not found.'), $table, $model); parent::__construct($message); } /** * Returns the name of the model wanting to load the database table * * @return string */ public function getModel() { return $this->model; } /** * Returns the name of the missing table * * @return string */ public function getTable() { return $this->table; } }