ORM yog dab tsi hauv Symfony?
ORM yog dab tsi hauv Symfony?

Video: ORM yog dab tsi hauv Symfony?

Video: ORM yog dab tsi hauv Symfony?
Video: Txhaum Lub Ntuj - David Yang (NEW HMONG MUSIC 2020) 2024, Kaum ib hlis
Anonim

Software Hom: Object-relational mapping

Tib neeg kuj nug tias, Lus Qhuab Qhia hauv Symfony yog dab tsi?

Lus qhuab qhia yog lig decoupled los ntawm Symfony thiab siv nws yog xaiv tau. Tshooj no yog txhua yam hais txog lub Lus qhuab qhia ORM, uas lub hom phiaj cia koj daim ntawv qhia cov khoom rau cov ntaub ntawv sib raug zoo (xws li MySQL, PostgreSQL lossis Microsoft SQL). Koj tuaj yeem txuas ntxiv cov ntaub ntawv rau MongoDB siv Lus qhuab qhia ODM tsev qiv ntawv.

Tsis tas li ntawd, cov lus qhuab qhia database yog dab tsi? Cov Lus qhuab qhia Qhov project (los yog Lus qhuab qhia ) yog ib txheej ntawm PHP cov tsev qiv ntawv feem ntau tsom rau kev muab cov kev pabcuam persistence thiab muaj feem xyuam rau kev ua haujlwm. Nws cov khoom plig khoom plig yog cov khoom siv sib txuas lus (ORM) thiab cov database abstraction txheej nws yog ua rau saum.

Ib yam li ntawd, ORM lub moj khaum yog dab tsi?

ORM tseem yog lwm nerd-acronym, nws luv luv rau Object Relational Mapping. Nyob rau hauv ib tug nutshell, ib ORM txoj haujlwm yog sau rau hauv ib hom lus taw qhia (xws li PHP, Java, C# thiab lwm yam …) thiab nws yog tsim los kom zoo qhwv ib ncig ntawm cov ntaub ntawv sib raug zoo.

Cov lus qhuab qhia DBAL yog dab tsi?

Cov Lus qhuab qhia Database Abstraction Layer ( DBAL ) yog txheej txheej abstraction uas zaum saum PDO thiab muaj qhov nkag siab zoo thiab hloov pauv API rau kev sib txuas lus nrog cov ntaub ntawv sib raug zoo tshaj plaws.

Pom zoo: