When creating or updating a product, the amount entered in Quantity is not stored in ps_product.quantity in the database but instead in the stock_available.quantity table linked to the id_product
However, when Product::getProducts() is called, it returns products with the prpduct.quantity value rather than the stock_available.quantity value.
This seems kind of useless. Is there an accepted way of either
a) getting the quantity of stock_available with getProducts()
b) using another existing method to return the actual stock
c) enabling something on prestashop so that the ps_product table is automatically synchronised with the stock_available table?