Phactory\Sql\Phactory::define PHP Метод

define() публичный Метод

* Define the default values to use when constructing a row in the specified table.
public define ( $blueprint_name, $defaults = [], $associations = [] )
$blueprint_name singular name of the table in the database
$defaults key => value pairs of column => value, or a phactory_blueprint
$associations array of phactory_associations
    public function define($blueprint_name, $defaults = array(), $associations = array())
    {
        if ($defaults instanceof Blueprint) {
            $blueprint = $defaults;
        } else {
            $blueprint = new Blueprint($blueprint_name, $defaults, $associations, $this);
        }
        $this->_blueprints[$blueprint_name] = $blueprint;
    }