public function getByStockItemId($stockItemId)
    {
        $where = Entity::A_STOCK_ITEM_REF . '=' . (int)$stockItemId;
        $result = $this->get($where);
        return $result;
    }
public function getByStockItemId($stockItemId)
    {
        $where = Entity::A_STOCK_ITEM_REF . '=' . (int)$stockItemId;
        $result = $this->get($where);
        return $result;
    }
public function getByStockItemId ( $ stockItemId ) { $ where = Entity :: A_STOCK_ITEM_REF . '=' . ( int ) $ stockItemId ; $ result = $ this -> get ( $ where ) ; return $ result ; }
Get all lots quantities for Magento stock item.

@param int $stockItemId
@return Entity[]
Get all lots quantities for Magento stock item .