PHPME Telegram 269
Dividing responsibilities - Part 2
Instead of creating a StockReport model from PurchaseOrderForStock objects, we could go directly to the source of the data, that is, the database where the application stores its purchase orders. If this is a relational database, there might be a table called purchaseorders, with columns for purchaseorderid, productid, orderedquantity, and wasreceived. If that's the case, then StockReportRepository wouldn't have to load any other object before it could build a StockReport object; it could make a single SQL query and use it to create the StockReport, as shown in Listing 11).



tgoop.com/phpme/269
Create:
Last Update:

Dividing responsibilities - Part 2
Instead of creating a StockReport model from PurchaseOrderForStock objects, we could go directly to the source of the data, that is, the database where the application stores its purchase orders. If this is a relational database, there might be a table called purchaseorders, with columns for purchaseorderid, productid, orderedquantity, and wasreceived. If that's the case, then StockReportRepository wouldn't have to load any other object before it could build a StockReport object; it could make a single SQL query and use it to create the StockReport, as shown in Listing 11).

BY Amazing PHP


Share with your friend now:
tgoop.com/phpme/269

View MORE
Open in Telegram


Telegram News

Date: |

SUCK Channel Telegram As five out of seven counts were serious, Hui sentenced Ng to six years and six months in jail. With Bitcoin down 30% in the past week, some crypto traders have taken to Telegram to “voice” their feelings. Administrators Hashtags are a fast way to find the correct information on social media. To put your content out there, be sure to add hashtags to each post. We have two intelligent tips to give you:
from us


Telegram Amazing PHP
FROM American