1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +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();
}
}