Download - Mondongo, un ODM para PHP y MongoDB
![Page 1: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/1.jpg)
MondonGO
![Page 2: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/2.jpg)
¿Qué es MondonGO?
![Page 3: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/3.jpg)
“Mondongo es a los ODMs lo que MongoDB a las bases de datos.”
![Page 4: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/4.jpg)
¿Ein?“Mondongo es a los ODMs lo que MongoDB a las
bases de datos.”
![Page 5: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/5.jpg)
¿Qué es ?
![Page 6: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/6.jpg)
“MongoDB es una base de datos escalable, de alto rendimiento, de código abierto y orientada a
documentos.”
![Page 7: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/7.jpg)
Terminología
![Page 8: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/8.jpg)
Base de Datos = Base de Datos
![Page 9: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/9.jpg)
Base de Datos = Base de Datos Tabla = Colección
![Page 10: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/10.jpg)
Base de Datos = Base de Datos Tabla = Colección
Registro ~ Documento
![Page 11: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/11.jpg)
Documentos
![Page 12: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/12.jpg)
JSON
![Page 13: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/13.jpg)
![Page 14: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/14.jpg)
Embebidos
![Page 15: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/15.jpg)
![Page 16: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/16.jpg)
Sin Esquema
![Page 17: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/17.jpg)
Cada documento puede tener distinta estructura
![Page 18: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/18.jpg)
No hay tipos
![Page 19: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/19.jpg)
Drivers
![Page 20: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/20.jpg)
![Page 21: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/21.jpg)
en
![Page 22: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/22.jpg)
Conectar con Mongo
![Page 23: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/23.jpg)
Seleccionar bases de datos
![Page 24: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/24.jpg)
Seleccionar colecciones
![Page 25: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/25.jpg)
Las bases de datos y las colecciones se crean automáticamente si no existen
![Page 26: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/26.jpg)
Los documentos son simplemente arrays
![Page 27: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/27.jpg)
Insertar documentos
![Page 28: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/28.jpg)
![Page 29: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/29.jpg)
Actualizar documentos
![Page 30: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/30.jpg)
Consultar documentos
![Page 31: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/31.jpg)
¿Qué es un ODM?
![Page 32: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/32.jpg)
ODM == Object Document Mapper
![Page 33: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/33.jpg)
“Un ODM es una herramienta que mapea la estructura de bases de datos a objetos”
![Page 34: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/34.jpg)
¿Qué es MondonGO?
![Page 35: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/35.jpg)
“Mondongo es un sencillo, potente y ultrarápido ODM para PHP y MongoDB.”
![Page 36: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/36.jpg)
Sencillo
![Page 37: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/37.jpg)
Fácil de usar
![Page 38: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/38.jpg)
Potente
![Page 39: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/39.jpg)
MondonGO es increíblemente flexible gracias a Mondator
![Page 40: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/40.jpg)
Puede usarse para cualquier tipo y tamaño de proyecto
![Page 41: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/41.jpg)
Ultrarápido
![Page 42: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/42.jpg)
Ha sido diseñado para ser extremadamente ligero
![Page 43: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/43.jpg)
Es el mapeador más rápido en PHP actualmente
![Page 44: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/44.jpg)
¿Qué es Mondator?
![Page 45: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/45.jpg)
“Mondator es un generador de clases para PHP.”
![Page 46: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/46.jpg)
Mondongo usa Mondator para generar las clases de documentos y repositorios
![Page 47: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/47.jpg)
Iniciar un mondator
![Page 48: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/48.jpg)
Las configuraciones de clases contienen la información de las clases que deben generarse
Asignar configuraciones de clases
![Page 49: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/49.jpg)
Asignar configuraciones de clases
![Page 50: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/50.jpg)
Las extensiones determinan qué clases se generarán y dónde a partir de las
configuraciones de clases
Asignar extensiones
![Page 51: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/51.jpg)
Asignar extensiones
![Page 52: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/52.jpg)
Procesar el mondator
![Page 53: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/53.jpg)
Mondongo genera cuatro clases por cada configuración de clase
![Page 54: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/54.jpg)
![Page 55: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/55.jpg)
Las clases Base no deben editarse, se sobreescriben cada vez que se procesa el mondator
![Page 56: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/56.jpg)
Documentos MondonGO
![Page 57: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/57.jpg)
Los documentos Mondongo se mapean en las configuraciones de clases de Mondator
![Page 58: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/58.jpg)
Campos
![Page 59: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/59.jpg)
Son los datos de los documentos
![Page 60: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/60.jpg)
![Page 61: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/61.jpg)
Tipos MondonGO
● array
● bin_data
● boolean
● date
● float
● integer
● raw
● reference_one
● reference_many
● string
![Page 62: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/62.jpg)
Se usan setters y getters para trabajar con los datos de los documentos
![Page 63: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/63.jpg)
![Page 64: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/64.jpg)
Referencias
![Page 65: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/65.jpg)
Las referencias son relaciones hacia otros documentos
![Page 66: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/66.jpg)
![Page 67: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/67.jpg)
![Page 68: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/68.jpg)
Referencias a uno
![Page 69: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/69.jpg)
Referencias a varios
![Page 70: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/70.jpg)
Embebidos
![Page 71: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/71.jpg)
Los embebidos son documentos dentro de otros documentos
![Page 72: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/72.jpg)
![Page 73: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/73.jpg)
![Page 74: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/74.jpg)
Se usan igual que las referencias
![Page 75: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/75.jpg)
Guardar
![Page 76: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/76.jpg)
![Page 77: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/77.jpg)
Mondongo genera la inserción o actualización óptima de los campos modificados
![Page 78: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/78.jpg)
Borrar
![Page 79: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/79.jpg)
![Page 80: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/80.jpg)
Configurar MondonGO
![Page 81: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/81.jpg)
Iniciar un mondongo
![Page 82: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/82.jpg)
Asignar conexiones al mondongo
![Page 83: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/83.jpg)
Las conexiones son perezosas
![Page 84: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/84.jpg)
Repositorios MondonGO
![Page 85: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/85.jpg)
Los repositorios realizan funciones generales sobre clases de documentos
![Page 86: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/86.jpg)
Se obtienen mediante el mondongo
![Page 87: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/87.jpg)
![Page 88: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/88.jpg)
Consultas MondonGO
![Page 89: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/89.jpg)
Se realizan mediante los repositorios
![Page 90: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/90.jpg)
Consultar documentos
![Page 91: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/91.jpg)
Consultar documentos con opciones
![Page 92: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/92.jpg)
Consultar documentos agrupando opciones
![Page 93: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/93.jpg)
La sintaxis de las opciones Mondongo es la misma que la sintaxis Mongo
![Page 94: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/94.jpg)
Consultar un documento
![Page 95: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/95.jpg)
Consultar un documento por ID
![Page 96: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/96.jpg)
Contar documentos
![Page 97: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/97.jpg)
Borrar documentos
![Page 98: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/98.jpg)
Eventos MondonGO
![Page 99: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/99.jpg)
Mondongo proporciona varios hooks en los documentos, que se lanzan antes y después de
ciertas acciones
![Page 100: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/100.jpg)
● preSave● postSave● preInsert● postInsert● preUpdate● postUpdate● preDelete● postDelete
![Page 101: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/101.jpg)
![Page 102: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/102.jpg)
Extensiones MondonGO
![Page 103: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/103.jpg)
Las extensiones Mondongo son extensiones Mondator
![Page 104: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/104.jpg)
Las extensiones Mondongo permiten personalizar muchísimo Mondongo
![Page 105: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/105.jpg)
¿Quieres usar los documentos como arrays?
![Page 106: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/106.jpg)
![Page 107: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/107.jpg)
![Page 108: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/108.jpg)
¿Quieres usar los documentos por sobrecarga?
![Page 109: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/109.jpg)
![Page 110: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/110.jpg)
![Page 111: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/111.jpg)
¿Quieres importar y exportar datos con arrays?
![Page 112: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/112.jpg)
![Page 113: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/113.jpg)
![Page 114: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/114.jpg)
Extensiones Independientes Mondongo
![Page 115: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/115.jpg)
Se definen en las configuraciones de clases
![Page 116: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/116.jpg)
¿Quieres guardar fechas de creación y actualización en algún documento?
![Page 117: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/117.jpg)
![Page 118: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/118.jpg)
![Page 119: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/119.jpg)
¿Quieres guardar el slug de algún campo en algún documento?
![Page 120: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/120.jpg)
![Page 121: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/121.jpg)
![Page 122: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/122.jpg)
¿Qué puedes hacer con extensiones independientes Mondongo?
![Page 123: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/123.jpg)
● Modificar campos, referencias, embebidos● Añadir● Editar● Borrar
● Añadir propiedades y métodos a documentos y repositorios
● Añadir eventos a documentos● …
![Page 124: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/124.jpg)
Extensiones Independientes Mondongopor defecto
![Page 125: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/125.jpg)
¿Quieres guardar fechas de creación y actualización en todos los documentos?
![Page 126: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/126.jpg)
![Page 127: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/127.jpg)
Más mondongadas...
![Page 128: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/128.jpg)
Mondongo permite manejar fácilmente los índices de las colecciones
![Page 129: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/129.jpg)
![Page 130: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/130.jpg)
![Page 131: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/131.jpg)
Mondongo permite guardar ficheros mediante GridFS
![Page 132: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/132.jpg)
![Page 133: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/133.jpg)
![Page 134: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/134.jpg)
Mondongo permite loguear las consultas de la base de datos para optimizar el desarrollo
![Page 135: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/135.jpg)
![Page 136: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/136.jpg)
Mondongo usa batchInsert para insertar documentos de manera eficiente
![Page 137: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/137.jpg)
Mondongo usa operaciones atómicas para actualizar y borrar documentos eficientemente
![Page 138: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/138.jpg)
Al usar clases generadas, y con PHPDoc, podrás usar el autocompletado de tu editor
IDE
![Page 139: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/139.jpg)
Mondongo está completamente testeado con pruebas automáticas con PHPUnit
![Page 140: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/140.jpg)
¿Por qué un ODM con MongoDB?
![Page 141: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/141.jpg)
Un ODM acelera y simplifica muchísimo el desarrollo y mantenimiento de las aplicaciones
![Page 142: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/142.jpg)
Los ODMs tienen una desventaja:el rendimiento
![Page 143: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/143.jpg)
¿Es MondonGO realmente ultrarápido ?
![Page 144: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/144.jpg)
Vamos a ver unas pruebas comparando Mondongo con Mongo directamente y con otros dos ODMs:
ActiveMongo y DoctrineMongo
![Page 145: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/145.jpg)
Insertando
![Page 146: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/146.jpg)
![Page 147: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/147.jpg)
Consultando por ID
![Page 148: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/148.jpg)
![Page 149: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/149.jpg)
Hydratando
![Page 150: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/150.jpg)
![Page 151: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/151.jpg)
Resumiendo...
![Page 152: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/152.jpg)
![Page 153: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/153.jpg)
Y además...
![Page 154: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/154.jpg)
sfMondongoPlugin
Integración con symfony
![Page 155: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/155.jpg)
MondongoBundle
Integración con Symfony2
![Page 156: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/156.jpg)
Conclusiones
● Mongo es sinónimo de alto rendimiento
![Page 157: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/157.jpg)
Conclusiones
● Mongo es sinónimo de alto rendimiento
● Un ODM acelera y simplifica el desarrollo y mantenimiento de las aplicaciones
![Page 158: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/158.jpg)
Conclusiones
● Mongo es sinónimo de alto rendimiento
● Un ODM acelera y simplifica el desarrollo y mantenimiento de las aplicaciones
● Mondongo es el mejor aliado para exprimir hasta la última gota de MongoDB en PHP
![Page 159: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/159.jpg)
Conclusiones
● Mongo es sinónimo de alto rendimiento
● Un ODM acelera y simplifica el desarrollo y mantenimiento de las aplicaciones
● Mondongo es el mejor aliado para exprimir hasta la última gota de MongoDB en PHP
● Las extensiones Mondator enlarguis your... ¡mondongo!
![Page 160: Mondongo, un ODM para PHP y MongoDB](https://reader034.vdocuments.pub/reader034/viewer/2022042508/549ea760b37959cd618b4785/html5/thumbnails/160.jpg)
¿Preguntas?
http://mondongo.es
[email protected]://twitter.com/pablodiphttp://github.com/pablodip
¿Te gusta Mondongo?
* Úsalo * Dalo a conocer * Blog * Twitter #mndgo