[symfony-users] propel driver not found
Hi! I have a problem, when I run the task «propel:build-schema» I get the following error. propelRunning reverse phing task [propel-schema-reverse] There was an error building XML from metadata: could not find driver Some problems occurred when executing the task: If the exception message is not clear enough, read the output of the task for more information I think my databases.yml and propel.ini are well defined. (real data connection was removed) I checked that my driver (oci8, http://www.php.net/manual/en/book.oci8.php) is installed and loaded. What do you think the problem is? Greetings, Alex. databases.yml dev: propel: param: classname: DebugPDO debug: { realmemoryusage: true, details: { time: { enabled: true }, slow: { enabled: true, threshold: 0.1 }, mem: { enabled: true }, mempeak: { enabled: true }, memdelta: { enabled: true } } } test: propel: param: classname: DebugPDO all: propel: class: sfPropelDatabase param: phptype: oci classname: PropelPDO dsn: 'oci:dbname=(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.1)(PORT=1234)))(CONNECT_DATA=(SERVICE_NAME=test)))' username: dan password: abc persistent: true propel.ini propel.targetPackage = lib.model propel.packageObjectModel = true propel.project = seguimiento propel.database= oci propel.database.driver = oci propel.database.url= oci:host=10.10.10.1;port=1234;dbname=test propel.database.creole.url = ${propel.database.url} propel.database.user = dan propel.database.password = abc [...] -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Using adoDB with symfony
I have never heard about oci8. It's seems it could be helpful. How do you configure doctrine to work with oci8? is oci8 a good replacement for pdo_oci? someone has used oci8 with propel? thanks a lot, vikos. On Saturday, January 22, 2011 7:36:08 AM UTC-6, Vikos wrote: with oracle better to use oci8 - much stable than PDO_OCI Doctrine work's well with oci8! I don't have any experience with oracel and propel... PDO_OCI doesn't support well the large objects... On Jan 21, 6:37 pm, Manuel Alejandro Gómez Nicasio alejand...@alejandrogomez.org wrote: Well, the PHP version that is installed doesn't support the PDO version that PDO_OCI needs. So we need to upgrade the PHP version and doing that could break something on the apps installed. In fact, on development we use postgreSQL but on production we must use oracle because the tables already exists on the oracle database. We can use postgres or Mysql , the production machines have the drivers required, but by doing that we must copy some tables from oracle database to our postgres or mysql databse that means copy information that eventually will be duplicated. On Friday, January 21, 2011 3:20:26 AM UTC-6, GarethMc wrote: And why can't he recompile it? the PDO drivers are an addition to PHP, it doesn't affect other parts of PHP that apps my rely on. Nothing should break It is FAR cheaper for you to look at fixing the server than trying to rewrite the core aspects of an applications framework library just because your server admin either cannot or is to lazy to do his job! The other alternative? Don't use Oracle. MySQL performs exceptionally well, as does PostgreSQL. And they are both a doddle to get running. 2011/1/21 Manuel Alejandro Gómez Nicasio aleja...@alejandrogomez.org thanks for answer, GarethMc. Propel works well. As I said, the project is almost done. However, these days while talking with the admin of the production boxes he told us that production machines doesn't have the PDO version that the project needs. So, he suggest to find an alternative to PDO, i.e. adoDB. The detailed problem is that the project uses oracle as DBMS but the PDO version on production servers doesn't support de pdo_oci driver. It simply doesn't compile. As the admin cannot recompile PHP with a new PDO version because other system installed on the server could break we are looking for some alternatives. So, is it possible to switch from PDO to adoDB while keeping Propel? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symf...@googlegroups.com To unsubscribe from this group, send email to symfony...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc identi.ca: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Using adoDB with symfony
Actually, we can setup a new server, that's no problem. But that is our last alternative. The admin says he don't want to add a new server for only one system. In the spanish group told me that PDO and adoDB are different things, the first one is an ORM (object-relational mapping) and the other is an DBAL (Database Abstraction Layer). The idea is to remove the PDO from propel plugin and add adoDB, that sound easy but I think it will be a hard work, if that change is possible. So, before we made our attempt to modify propel and learn the fundamentals of propel and PDO. We want to be certain that the we can achieve the goal. thanks for your suggestions Gabriel. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Using adoDB with symfony
Well, the PHP version that is installed doesn't support the PDO version that PDO_OCI needs. So we need to upgrade the PHP version and doing that could break something on the apps installed. In fact, on development we use postgreSQL but on production we must use oracle because the tables already exists on the oracle database. We can use postgres or Mysql , the production machines have the drivers required, but by doing that we must copy some tables from oracle database to our postgres or mysql databse that means copy information that eventually will be duplicated. On Friday, January 21, 2011 3:20:26 AM UTC-6, GarethMc wrote: And why can't he recompile it? the PDO drivers are an addition to PHP, it doesn't affect other parts of PHP that apps my rely on. Nothing should break It is FAR cheaper for you to look at fixing the server than trying to rewrite the core aspects of an applications framework library just because your server admin either cannot or is to lazy to do his job! The other alternative? Don't use Oracle. MySQL performs exceptionally well, as does PostgreSQL. And they are both a doddle to get running. 2011/1/21 Manuel Alejandro Gómez Nicasio alejand...@alejandrogomez.org thanks for answer, GarethMc. Propel works well. As I said, the project is almost done. However, these days while talking with the admin of the production boxes he told us that production machines doesn't have the PDO version that the project needs. So, he suggest to find an alternative to PDO, i.e. adoDB. The detailed problem is that the project uses oracle as DBMS but the PDO version on production servers doesn't support de pdo_oci driver. It simply doesn't compile. As the admin cannot recompile PHP with a new PDO version because other system installed on the server could break we are looking for some alternatives. So, is it possible to switch from PDO to adoDB while keeping Propel? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfon...@googlegroups.com To unsubscribe from this group, send email to symfony-user...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc identi.ca: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Using adoDB with symfony
Hi everyone! I'm working on a project with symfony 1.4 and propel as a ORM. These days we are thinking about the possibility of make some changes to the project. What we think is if is posible to change de PDO with other library, maybe adoDB. Do you think this is possible? What would be the advantages and disadvantages of doing that? If is possible and taking care the project is almost already to go into production, how hard would it be? and how long would it take? We googled but we didn't found anything on this topic. IMHO, I think isn't possible or at least it would be needed to modify so many symfony core files and this could impact on the symfony performance. Also that the changes will take time and the project must be released ASAP. What do you think about this? There's a real big advantage of using adoDB instead of PDO? Cheers! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Using adoDB with symfony
thanks for answer, GarethMc. Propel works well. As I said, the project is almost done. However, these days while talking with the admin of the production boxes he told us that production machines doesn't have the PDO version that the project needs. So, he suggest to find an alternative to PDO, i.e. adoDB. The detailed problem is that the project uses oracle as DBMS but the PDO version on production servers doesn't support de pdo_oci driver. It simply doesn't compile. As the admin cannot recompile PHP with a new PDO version because other system installed on the server could break we are looking for some alternatives. So, is it possible to switch from PDO to adoDB while keeping Propel? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] i18n i10n on Admin Generator
Hello, I wonder if it is possible to fully localize the modules in the backend (admin generator). I configured properly in my settings.yml all: .settings: charset: utf-8 i18n: true default_culture: es After that, I got a semi-localized templates. For instance, the 'save', 'delete', 'edit' and 'save and add' actions were localized, but the 'back to list' action was not. However, It can be changed via the generator.yml. generator: param: config: new: actions: _list: label: Volver I know that is not a good practice, since it is not internationalized. First question, How to internationalize the messages on yml files? Nonetheless, the templates are still semi-localized because flashes, deletion confirmation on delete action, etc. are not localized. In fact, there is no way to localize them because that messages are not inside i18n::__() function. Second question, Is there another way to localize those messages? Finally, I thought to modify the skeleton used by propel:generate- admin task in order to add internationalization or putting the messages directly in spanish. I think the first option is the best although modify symfony core is not recommended. What do you think on this matter? Best regards. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] How to display/get the info-related to the main form on the embedded form?
Hi folks. The database has two tables: 'alumno' and 'alumno_interno'. The 'alumno' table contains general data about students: name, lastname, address, etc. The 'alumno_interno' table contains details about the student: grade, control number, etc. The relationship between tables is: alumno {id, /*more fields*/} alumno_interno {id, id_alumno, /*more fields*/} On Symfony I built the models and forms. In fact, AlumnoInternoForm is already embedded on AlumnoForm. [code] /* AlumnoForm.class.php */ public function configure() { parent::configure(); /*code portion removed*/ $alumno_interno = new AlumnoInterno; $alumno_interno-setAlumno($this-getObject()); $alumno_interno_form = new AlumnoInternoForm($alumno_interno); $this-embedForm('alumno_interno', $alumno_interno_form); /*code portion removed*/ } [/code] I'm able to save a new student and his or her details in 'alumno' and 'alumno_interno' respectively. The trouble is when I try to edit an 'alumno' object: the AlumnoForm renders well and shows the embedded form (AlumnoInternoForm). The student's data is retrieved from the 'alumno' table but not from the 'alumno_interno' table. So, the AlumnoForm is well populated but the AlumnoInteroForm isn't. It's populated with the defaults values. I think I need to override a AlumnoForm method, maybe updateDefaultsFromObject(). Well, I did. But It didn't work. :-( Basically, I need to retrieve the AlumnoInterno object related to the Alumno object from the main form -AlumnoForm-, put the AlumnoInterno object inside the AlumnoInternoForm and update the AlumnoInternoForm's values in order to show the data. :-D How to do that? Someone? Software: Symfony: 1.4.6 PHP: 5.3.2 Thank you. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] [SOLVED] Re: How to display/get the info-related to the main form on the embedded form?
I don't know why but embedRelation('AlumnoInterno') did not work. Maybe the Propel version? Symfony throws me Call to undefined method AlumnoForm::embedRelation. In the other hand, I used getAlumnoInternos() wich Gets an array of AlumnoInterno objects which contain a foreign key that references this object.. Since every Alumno object has only one AlumnoInterno object I take the first element of getAlumnoInternos(). The code is as follows: [code] public function configure() { parent::configure(); /*code portion removed*/ $alumnos_internos = $this-getObject()- getgetAlumnoInternos(); $alumno_interno = $alumnos_internos[0]; $alumno_interno_form = new AlumnoInternoForm($alumno_interno); $this-embedForm('alumno_interno', $alumno_interno_form); /*code portion removed*/ } [/code] Well, It works. However I am not sure if It is the best approach, do you? Thank you. On Sep 10, 12:03 pm, jota jdeveloper.inxe...@gmail.com wrote: Try this: public function configure() { parent::configure(); /*code portion removed*/ $alumno_interno = $this-getObject()-AlumnoInterno(); //if the object Alumno is new it gives you an empty AlumnoInterno object, else it gives you the associated AlumnoInterno $alumno_interno_form = new AlumnoInternoForm($alumno_interno); $this-embedForm('alumno_interno', $alumno_interno_form); /*code portion removed*/ } another way is to use embedRelation('AlumnoInterno') so you don't have to deal with the save and getting the relation object to construct the subform Hope it works saludos 2010/9/10 Alejandro Gómez alejandro.go...@alejandrogomez.org Hi folks. The database has two tables: 'alumno' and 'alumno_interno'. The 'alumno' table contains general data about students: name, lastname, address, etc. The 'alumno_interno' table contains details about the student: grade, control number, etc. The relationship between tables is: alumno {id, /*more fields*/} alumno_interno {id, id_alumno, /*more fields*/} On Symfony I built the models and forms. In fact, AlumnoInternoForm is already embedded on AlumnoForm. [code] /* AlumnoForm.class.php */ public function configure() { parent::configure(); /*code portion removed*/ $alumno_interno = new AlumnoInterno; $alumno_interno-setAlumno($this-getObject()); $alumno_interno_form = new AlumnoInternoForm($alumno_interno); $this-embedForm('alumno_interno', $alumno_interno_form); /*code portion removed*/ } [/code] I'm able to save a new student and his or her details in 'alumno' and 'alumno_interno' respectively. The trouble is when I try to edit an 'alumno' object: the AlumnoForm renders well and shows the embedded form (AlumnoInternoForm). The student's data is retrieved from the 'alumno' table but not from the 'alumno_interno' table. So, the AlumnoForm is well populated but the AlumnoInteroForm isn't. It's populated with the defaults values. I think I need to override a AlumnoForm method, maybe updateDefaultsFromObject(). Well, I did. But It didn't work. :-( Basically, I need to retrieve the AlumnoInterno object related to the Alumno object from the main form -AlumnoForm-, put the AlumnoInterno object inside the AlumnoInternoForm and update the AlumnoInternoForm's values in order to show the data. :-D How to do that? Someone? Software: Symfony: 1.4.6 PHP: 5.3.2 Thank you. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en