Skip to content
Snippets Groups Projects
Commit b9dbf13e authored by xamgore's avatar xamgore
Browse files

Removed factory method in the super Model class

parent 785cbd54
Branches
Tags
No related merge requests found
...@@ -10,21 +10,4 @@ ...@@ -10,21 +10,4 @@
*/ */
abstract class Kohana_Model { abstract class Kohana_Model {
/**
* Create a new model instance.
*
* $model = Model::factory($name);
*
* @param string $name model name
* @return Model
* @deprecated don't use it in the project!
*/
public static function factory($name)
{
// Add the model prefix
$class = 'Model_'.$name;
return new $class;
}
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment