Ver Mensaje Individual
  #9 (permalink)  
Antiguo 09/10/2011, 13:24
phpdevelopment
 
Fecha de Ingreso: mayo-2011
Mensajes: 256
Antigüedad: 13 años, 6 meses
Puntos: 5
Respuesta: Integracion doctrine con zend framework

Este es mi application.ini

Código HTML:
Ver original
  1. [production]
  2.  
  3. ; --------------------------
  4. ; PHP Specific Configuration
  5. ; --------------------------
  6. phpSettings.display_startup_errors = 0
  7. phpSettings.display_errors = 0
  8.  
  9. includePaths.library = APPLICATION_PATH "/../library"
  10.  
  11.  
  12. ; ----------------------------------------
  13. ; Zend Framework Application Configuration
  14. ; ----------------------------------------
  15. bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  16. bootstrap.class = "Bootstrap"
  17.  
  18. pluginPaths.Bisna\Application\Resource\ = "Bisna/Application/Resource"
  19.  
  20. autoloaderNamespaces[] = Bisna
  21. autoloaderNamespaces[] = Application\Entity
  22.  
  23. appnamespace = "Application"
  24.  
  25.  
  26. ; ------------------------------
  27. ; Front Controller Configuration
  28. ; ------------------------------
  29.  
  30. resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  31. resources.frontController.params.displayExceptions = 0
  32.  
  33.  
  34. ; ------------------------------------------------------------------------------
  35. ; Doctrine Class Loader Configuration
  36. ; ------------------------------------------------------------------------------
  37.  
  38. resources.doctrine.classLoader.loaderClass = "Doctrine\Common\ClassLoader"
  39. resources.doctrine.classLoader.loaderFile  = APPLICATION_PATH "/../library/doctrine-orm/Doctrine/Common/ClassLoader.php"
  40.  
  41. resources.doctrine.classLoader.loaders.doctrine_common.namespace   = "Doctrine\Common"
  42. resources.doctrine.classLoader.loaders.doctrine_common.includePath = APPLICATION_PATH "/../library/doctrine-orm/Doctrine/Common"
  43.  
  44. resources.doctrine.classLoader.loaders.doctrine_dbal.namespace   = "Doctrine\DBAL"
  45. resources.doctrine.classLoader.loaders.doctrine_dbal.includePath = APPLICATION_PATH "/../library/doctrine-orm/Doctrine/DBAL"
  46.  
  47. resources.doctrine.classLoader.loaders.doctrine_orm.namespace   = "Doctrine\ORM"
  48. resources.doctrine.classLoader.loaders.doctrine_orm.includePath = APPLICATION_PATH "/../library/doctrine-orm/Doctrine/ORM"
  49.  
  50. resources.doctrine.classLoader.loaders.symfony_console.namespace   = "Symfony\Component\Console"
  51. resources.doctrine.classLoader.loaders.symfony_console.includePath = APPLICATION_PATH "/../library/doctrine-orm/Doctrine/Symfony"
  52.  
  53. resources.doctrine.classLoader.loaders.symfony_yaml.namespace   = "Symfony\Component\Yaml"
  54. resources.doctrine.classLoader.loaders.symfony_yaml.includePath = APPLICATION_PATH "/../library/doctrine-orm/Doctrine/Symfony"
  55.  
  56. ; ------------------------------------------------------------------------------
  57. ; Doctrine Cache Configuration
  58. ; ------------------------------------------------------------------------------
  59.  
  60. ; Points to default cache instance to be used. Optional is only one cache is defined
  61. resources.doctrine.cache.defaultCacheInstance = default
  62.  
  63. ; Cache Instance configuration for "default" cache
  64. ;resources.doctrine.cache.instances.default.id = default
  65. resources.doctrine.cache.instances.default.adapterClass = "Doctrine\Common\Cache\MemcacheCache"
  66. resources.doctrine.cache.instances.default.namespace    = "Application_"
  67. resources.doctrine.cache.instances.default.options.servers.0.host = localhost
  68. resources.doctrine.cache.instances.default.options.servers.0.port = 11211
  69. ;resources.doctrine.cache.instances.default.options.servers.0.persistent    = true
  70. ;resources.doctrine.cache.instances.default.options.servers.0.weight        = 1
  71. ;resources.doctrine.cache.instances.default.options.servers.0.timeout       = 1
  72. ;resources.doctrine.cache.instances.default.options.servers.0.retryInterval = 15
  73. ;resources.doctrine.cache.instances.default.options.servers.0.status        = true
  74.  
  75. ; ------------------------------------------------------------------------------
  76. ; Doctrine DBAL Configuration
  77. ; ------------------------------------------------------------------------------
  78.  
  79. ; Points to default connection to be used. Optional if only one connection is defined
  80. resources.doctrine.dbal.defaultConnection = default
  81.  
  82. ; DBAL Connection configuration for "default" connection
  83. ;resources.doctrine.dbal.connections.default.id = default
  84. ;resources.doctrine.dbal.connections.default.eventManagerClass  = "Doctrine\Common\EventManager"
  85. ;resources.doctrine.dbal.connections.default.eventSubscribers[] = "DoctrineExtensions\Sluggable\SluggableSubscriber"
  86. ;resources.doctrine.dbal.connections.default.configurationClass = "Doctrine\DBAL\Configuration"
  87. ;resources.doctrine.dbal.connections.default.sqlLoggerClass     = "Doctrine\DBAL\Logging\EchoSQLLogger"
  88. ;resources.doctrine.dbal.connections.default.types.my_type      = "Application\DBAL\Type\MyType"
  89.  
  90. ; Database configuration
  91. ;resources.doctrine.dbal.connections.default.parameters.wrapperClass = ""
  92. resources.doctrine.dbal.connections.default.parameters.driver   = "pdo_mysql"
  93. resources.doctrine.dbal.connections.default.parameters.dbname   = "fmm"
  94. resources.doctrine.dbal.connections.default.parameters.host = "localhost"
  95. resources.doctrine.dbal.connections.default.parameters.port = 3306
  96. resources.doctrine.dbal.connections.default.parameters.user = "root"
  97. resources.doctrine.dbal.connections.default.parameters.password = "password"
  98. ;resources.doctrine.dbal.connections.default.parameters.driverOptions.ATTR_USE_BUFFERED_QUERIES = true
  99.  
  100.  
  101. ; ------------------------------------------------------------------------------
  102. ; Doctrine ORM Configuration
  103. ; ------------------------------------------------------------------------------
  104.  
  105. ; Points to default EntityManager to be used. Optional if only one EntityManager is defined
  106. resources.doctrine.orm.defaultEntityManager = default
  107.  
  108. ; EntityManager configuration for "default" manager
  109. ;resources.doctrine.orm.entityManagers.default.id = default
  110. ;resources.doctrine.orm.entityManagers.default.entityManagerClass   = "Doctrine\ORM\EntityManager"
  111. ;resources.doctrine.orm.entityManagers.default.configurationClass   = "Doctrine\ORM\Configuration"
  112. ;resources.doctrine.orm.entityManagers.default.entityNamespaces.app = "Application\Entity"
  113. resources.doctrine.orm.entityManagers.default.connection     = default
  114. resources.doctrine.orm.entityManagers.default.proxy.autoGenerateClasses = true
  115. resources.doctrine.orm.entityManagers.default.proxy.namespace           = "Application\Entity\Proxy"
  116. resources.doctrine.orm.entityManagers.default.proxy.dir                 = APPLICATION_PATH "/../library/Application/Entity/Proxy"
  117. ;resources.doctrine.orm.entityManagers.default.metadataCache = default
  118. ;resources.doctrine.orm.entityManagers.default.queryCache    = default
  119. ;resources.doctrine.orm.entityManagers.default.resultCache   = default
  120. ;resources.doctrine.orm.entityManagers.default.DQLFunctions.numeric.PI = "DoctrineExtensions\ORM\Query\Functions\Numeric\PiFunction"
  121. resources.doctrine.orm.entityManagers.default.metadataDrivers.annotationRegistry.annotationFiles[]     = APPLICATION_PATH "/../library/doctrine-orm/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php"
  122. ;resources.doctrine.orm.entityManagers.default.metadataDrivers.annotationRegistry.annotationNamespaces.0.namespace   = "Gedmo"
  123. ;resources.doctrine.orm.entityManagers.default.metadataDrivers.annotationRegistry.annotationNamespaces.0.includePath = APPLICATION_PATH "/../library/vendor"
  124. resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.adapterClass          = "Doctrine\ORM\Mapping\Driver\AnnotationDriver"
  125. resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.mappingNamespace      = "Application\Entity"
  126. resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.mappingDirs[]         = APPLICATION_PATH "/../library/Application/Entity"
  127. resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.annotationReaderClass = "Doctrine\Common\Annotations\AnnotationReader"
  128. resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.annotationReaderCache = default
  129. ;resources.doctrine.orm.entityManagers.default.metadataDrivers.drivers.0.annotationReaderNamespaces.App = "Application\DoctrineExtensions\ORM\Mapping"
  130.  
  131.  
  132. [staging : production]
  133.  
  134.  
  135. [testing : production]
  136. phpSettings.display_startup_errors = 1
  137. phpSettings.display_errors = 1
  138.  
  139.  
  140. [development : production]
  141. phpSettings.display_startup_errors = 1
  142. phpSettings.display_errors = 1
  143. resources.frontController.params.displayExceptions = 1

Y la estructura de directorios es.

library
1 -Bisna
2 -Zend
3 -doctrine-orm
3.1 -Doctrine
3.1.1 -Common
3.1.2 -DBAL
3.1.3 -ORM
3.1.4-Symfony
3.1.4.1-Component
3.1.4.2-Console
3.1.4.3-Yaml
4-bin

Yo no he agregado nada de Symfony\Symfony en ningun lado eso es lo que me extraña...

Última edición por phpdevelopment; 09/10/2011 a las 13:57 Razón: Mejorar datos