This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » Problem Admin generator
Problem Admin generator [message #103001] Fri, 23 July 2010 15:13 Go to next message
Matha  is currently offline Matha
Messages: 2
Registered: July 2010
Junior Member
Hi,

I have a problem with the admin generator in Symfony 1.4. I explain you :

My website is composed of two databases (db_one & db_two). The "doctrine:build --all" works perfectly, it build my two databases.

Here a "schema" of the dbs :
db_one :
-- user

db_two :
-- faq
-- content

As I want a dynamic content, it is necessary to create an admin panel. That's what I've done. Every features works except the edition.

In fact, I can add a new entry, I can use the filter BUT I can't access to the edition. Symfony exits an error like that :

'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_one.faq' doesn't exist'

If we analyze this error, we can see that Symfony is trying to get back datas from the db_one. But datas are on db_two.

Where is the problem ? Knowing that the creation, filter and the deletion works perfectly !

If you have any question, I can answer you Wink

Amically,
Re: Problem Admin generator [message #103075 is a reply to message #103001 ] Mon, 26 July 2010 10:09 Go to previous message
Matha  is currently offline Matha
Messages: 2
Registered: July 2010
Junior Member
I found the solution, the problem was that the function "edit" did not connect to the right database.

so just to clarify the database in the file editAction.php.

Previous Topic:[SOLVED] Problem with propel and modified columns
Next Topic:Problem with WAMP and Pear
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software