Suppliers
Suppliers can be used to keep track of companies who deliver products to you or your customer.
By linking a product to a supplier you may through a third party add-on i.e. create order automations, reports, presentations, etc.
Entity Object
$supplier = new ent_supplier();
$supplier->data['name'] = 'Wholesaler';
$supplier->save();
Reference Model
Suppliers doesn't have a reference object. Instead, values from the entity will be returned.
echo reference::supplier($supplier_id)->name;
Database Query
$supplier = database::query(
"select * from ". DB_TABLE_PREFIX ."suppliers
where id = ". (int)$supplier_id ."
limit 1;"
)->fetch();