Answer the question
In order to leave comments, you need to log in
How to properly convert data from an entity using data from another entity?
There is a Product table. It contains the Price field containing the price in dollars.
What is the correct way to describe the getPrice() method that returns the price in rubles if the current exchange rate is recorded in the Config table?
Where is the best place to place the connection to the Config table and how to pass the value to the getPrice() method of the Product entity?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question