Difference between revisions of "Movie Database Tutorial - Database and Models"

From Documentation for GridGuyz CMS
Jump to: navigation, search
(Mapper létrehozása)
(Creating a mapper)
Line 191: Line 191:
  
 
Creating a mapper is quite easy by employing the abstract classes at our disposal. The object automatically gets the default database relation upon the class instantiation
 
Creating a mapper is quite easy by employing the abstract classes at our disposal. The object automatically gets the default database relation upon the class instantiation
<ref>Az alapértelmezett adatbázis kapcsolat a [http://framework.zend.com/manual/2.2/en/modules/zend.service-manager.intro.html service locator], illetve a [http://framework.zend.com/manual/2.1/en/tutorials/quickstart.di.html dependency injection] segítségével kerül beállításra az objektum példányosítása során. Természetesen ezen mechanizmusok kikerülésével, illetve közvetlen a [http://framework.zend.com/manual/2.1/en/tutorials/quickstart.di.html dependency injection] paraméterezett példányosításával más kapcsolat is használható.</ref>.
+
<ref>
 +
The default database relation is done with the help of the [http://framework.zend.com/manual/2.2/en/modules/zend.service-manager.intro.html service locator], and [http://framework.zend.com/manual/2.1/en/tutorials/quickstart.di.html dependency injection] during the instantiation of the object. Of course, other relations can also be used by bypassing these mechanisms as well as with a parametered instantiation with the [http://framework.zend.com/manual/2.1/en/tutorials/quickstart.di.html dependency injection].
 +
</ref>.
  
 
Let's create a <code>module/VendorName/MovieDatabase/src/VendorName/MovieDatabase/Model/Movie/Mapper.php</code> file:
 
Let's create a <code>module/VendorName/MovieDatabase/src/VendorName/MovieDatabase/Model/Movie/Mapper.php</code> file:

Revision as of 07:17, 25 October 2013