Solar_Sql_Model_Catalog::setModel()

public void Solar_Sql_Model_Catalog::setModel ( string $name , string|Solar_Sql_Model $spec )

Sets a model name to be a specific instance or class.

Parameters

  • (string) $name: The model name to use.

  • (string|Solar_Sql_Model) $spec: If a model object, use directly; otherwise, assume it's a string class name and create a new model using that.

Returns

  • (void)

Description

Sets a model name to be a specific instance or class.

Generally, you only need this when you want to bring in a single model from outside the expected stack.



Local