Let's start with an example given on FFF user guide. There is a database table:
CREATE TABLE products (
productID VARCHAR(30),
description VARCHAR(255),
supplierID VARCHAR(30),
unitprice DECIMAL(10,2),
quantity INT,
PRIMARY KEY(productID)
);
And I have a data mapper with a virtual field:
$item=new DB\SQL\Mapper($db,'products');
$item->totalprice='unitprice*quantity';
Let's say that I have performed some queries and I used this virtual field.
Now I would like to remove this virtual field, because I don't need it for further requests and I don't want to overload the data base with useless calculations. Is it possible?