1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 23:52:33 +01:00
invoiceninja/app/models/Product.php
2014-04-25 12:11:20 +03:00

9 lines
165 B
PHP
Executable File

<?php
class Product extends EntityModel
{
public static function findProductByKey($key)
{
return Product::scope()->where('product_key','=',$key)->first();
}
}