Skip to content

Working with LiteCommerce models

beatnbite edited this page Jul 2, 2012 · 2 revisions

LiteCommerce uses Doctrine 2.0 ORM framework for its model classes.

Object-relation mapping metadata should be specified in your model classes as docblock annotations.

See the full list of Doctrine 2 Annotations.

One thing that may confuse you when working with model classes is that there are methods which aren't declared in the source code. That's because Doctrine generates these methods from docblock annotations automatically (during the cache re-build process). For example, the getProductMarketPrice() method calls "$product->getMarketPrice()", but you'll never find the declaration of the getMarketPrice() method until install the software.

Clone this wiki locally