| Forum: symfony 1.2 |
|---|
| Topic: sfDoctrineGuardPlugin on new Host not Working |
|---|
| Re: sfDoctrineGuardPlugin on new Host not Working [message #95890 is a reply to message #95568 ] |
Sun, 21 March 2010 11:17 |
halfer Messages: 8778 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
Can you recreate the problem on another machine? I guess it will be difficult to assist if it is just on one server.
It might be worth running the Doctrine tests (I presume it has some) on your troublesome server to see if it is OK from that perspective.
If you are sure that SPL is the problem, are you sure that it is activated in your system? Presumably it comes up if you do "php -m" and also in an apache-based phpinfo()?
Remember Gaza
|
|
|
| Forum: jobeet |
|---|
| Topic: Call to undefined method BaseJobeetJob::toArray |
|---|
| Re: Call to undefined method BaseJobeetJob::toArray [message #95886 is a reply to message #91534 ] |
Sun, 21 March 2010 09:45 |
bartel Messages: 2 Registered: March 2010 |
Junior Member |
|
|
I have the same problem, with symfony 1.4
Someone found a solution ??
Thanks
|
|
|
| Re: Call to undefined method BaseJobeetJob::toArray [message #95896 is a reply to message #91534 ] |
Sun, 21 March 2010 11:58 |
halfer Messages: 8778 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
Have you build your model? What database are you using?
Remember Gaza
|
|
|
| Re: Call to undefined method BaseJobeetJob::toArray [message #95897 is a reply to message #95896 ] |
Sun, 21 March 2010 12:00 |
bartel Messages: 2 Registered: March 2010 |
Junior Member |
|
|
It's ok,
in my propel.ini file I didn't have these two lines :
propel.addGenericAccessors = true
propel.addGenericMutators = true
It's work fine now !
THanks
|
|
|
| Forum: General discussion |
|---|
| Topic: doctrine:insert-sql ads one more table after symfony cc |
|---|
| doctrine:insert-sql ads one more table after symfony cc [message #95884] |
Sun, 21 March 2010 04:15 |
johansonevR Messages: 2 Registered: March 2010 |
Junior Member |
|
|
hi there,
when i insert my sql with doctrine:insert-sql it adds one more table that isn't described in schema.yml.
I've cleaned the cache - symfony cc.
I rebooted my computer.
Now after going through the steps again the non-described table is still there. It must be something with the cache i think,
i am loading the data from schema.yml and generating the database tables from it. The addition table is from old statements, " symfony cc" simply doesn't remove it.
uh uh and one more thing when i use "symfony doctrine:generate-module --with-show --non-verbose-templates frontend index title"
| Quote: | i have a table title and it looks like this:
title
------
id
title (UNI)
ad_id (MUL)
|
it tells me Fatal Error Class 'titleForm' not found in 'c:\..\sfGenerator.class.php' on line 331
but when i write "symfony doctrine:generate-module --with-show --non-verbose-templates frontend index cat"
it executes it with no errors.
and the table cat looks like this
| Quote: |
cat
---
id
name (UNI)
ad_id (MUL)
|
eergh, why is this ? is my symfony screwed ? should i install a new one ?
[Updated on: Sun, 21 March 2010 04:20]
|
|
|
| Topic: Help ubuntu symfony 1.4 + doctrine with mssql 2005 |
|---|
| Re: Help ubuntu symfony 1.4 + doctrine with mssql 2005 [message #95888 is a reply to message #95573 ] |
Sun, 21 March 2010 11:08 |
halfer Messages: 8778 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
Nevertheless it still sounds like you have got further that way.
What error do you get if you use "mssql", and what do you do to get that error?
Remember Gaza
|
|
|
| Topic: Routing problem |
|---|
| Routing problem [message #95887] |
Sun, 21 March 2010 11:00 |
modogo2000 Messages: 8 Registered: December 2009 |
Junior Member |
|
|
Hello,
I'm having a problem with routing. When I type the following address:
http://Test/frontend_dev.php/emission I have my module that displayed but when I type http://test/emission my module is not found.
I searched in the forum but I can not find a matching case
Best regards
symfony version 1.4.3
|
|
|
| Re: Routing problem [message #95889 is a reply to message #95887 ] |
Sun, 21 March 2010 11:09 |
halfer Messages: 8778 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
When you say "not found", do you mean an Apache 404? If so, you have not loaded or enabled mod_rewrite in Apache.
Remember Gaza
|
|
|
| Re: Routing problem [message #95891 is a reply to message #95889 ] |
Sun, 21 March 2010 11:19 |
modogo2000 Messages: 8 Registered: December 2009 |
Junior Member |
|
|
How do I check in apache?
Sorry for this question but i don't really know
|
|
|
| Re: Routing problem [message #95894 is a reply to message #95887 ] |
Sun, 21 March 2010 11:56 |
halfer Messages: 8778 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
|
Well, could you first confirm that you are getting an Apache 404 i.e. a white screen containing a plain server error - are you?
[Updated on: Sun, 21 March 2010 11:56] Remember Gaza
|
|
|
| Re: Routing problem [message #95898 is a reply to message #95894 ] |
Sun, 21 March 2010 12:02 |
modogo2000 Messages: 8 Registered: December 2009 |
Junior Member |
|
|
|
Yes i have this error (http 404 page introuvable)
|
|
|
| Re: Routing problem [message #95899 is a reply to message #95887 ] |
Sun, 21 March 2010 12:07 |
halfer Messages: 8778 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
Right! This is our most popular question here.
Make sure that mod_rewrite is loaded in Apache. Then ensure that your AllowOverride settings are OK ("AllowOverride All" will work but may be too permissive).
Remember Gaza
|
|
|
| Topic: doctrine join question (I'm a n00b) |
|---|
| Re: doctrine join question (I'm a n00b) [message #95885 is a reply to message #95581 ] |
Sun, 21 March 2010 09:44 |
ruccola Messages: 12 Registered: February 2010 Location: London |
Junior Member |
|
|
Thank you very much for all the help. I really need to read up about Doctrine queries.
|
|
|
| Re: doctrine join question (I'm a n00b) [message #95895 is a reply to message #95581 ] |
Sun, 21 March 2010 11:56 |
ruccola Messages: 12 Registered: February 2010 Location: London |
Junior Member |
|
|
One more question though, if I can!
How do I link a review to a sfGuardUser? I've tried adding this to my schema.yml:
user_id:
type: integer(4)
...snip snip...
relations:
sfGuardUser:
class: sfGuardUser
local: user_id
foreign: id
alias: user
It seems to create the tables correctly, but when trying to read my fixtures, it results in an error message that looks like this:
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`lucid_cms`.`review`, CONSTRAINT `review_user_id_sf_guard_user_id` FOREIGN KEY (`user_id`) REFERENCES `sf_guard_user` (`id`))
EDIT!!!! My bad, I didn't have a fixture for sfGuardUser, so obviously it couldn't link to that table...
[Updated on: Sun, 21 March 2010 12:10]
|
|
|
| Re: doctrine join question (I'm a n00b) [message #95900 is a reply to message #95895 ] |
Sun, 21 March 2010 12:13 |
xzyfer Messages: 8 Registered: March 2010 |
Junior Member |
|
|
my best guess is that the column definition user_id in your yaml schema is different from the column definition id on the sf_guard_user model.
the type, length, and unsigned properties have to be the same on both columns for there to be a relationship
|
|
|
| Forum: Miscellaneous |
|---|
| Topic: Forum spammers - hall of shame |
|---|
| Apple iPad 3G Wi-Fi 64GB / Apple iPhone 3GS 32GB [message #95903 is a reply to message #94863 ] |
Sun, 21 March 2010 14:53 |
caswellpcaswell Messages: 1 Registered: March 2010 |
Junior Member |
|
|
Flogging mobile phones - Mister Sheikh has been spamming these boards. Do not buy from him!
If Interested Please Contact: Mr Qadir Sheikh
Email : mobilimited@hotmail.com
Skype: mobilimited
Mobile# : +447024056835
[Updated on: Sun, 21 March 2010 16:09] by Moderator
|
|
|
| Forum: symfony 1.3 and 1.4 |
|---|
| Topic: Need help with routes (again, *sigh*) |
|---|
| Re: Need help with routes (again, *sigh*) [message #95892 is a reply to message #95880 ] |
Sun, 21 March 2010 11:21 |
Bart00 Messages: 25 Registered: January 2010 |
Junior Member |
|
|
Hi
I decided to replace my check to the action, and now it works (with almost identical code):
$user = $this->getUser();
if (!$user->getProfile()->isActivated()) {
$user->notActivatedError($user->getGuardUser());
if ($this->forum_id) {
$this->redirect('forumforum', Doctrine::getTable('forumforum')->findOneBy('id', $this->forum_id));
}
else {
$this->redirect('forumtopic', Doctrine::getTable('forumtopic')->findOneBy('id', $this->topic_id));
}
}
Can't figure out why it wouldn't work in the model, though... Tried with and without '@'.
Thanks!
|
|
|
| Re: Need help with routes (again, *sigh*) [message #95893 is a reply to message #95870 ] |
Sun, 21 March 2010 11:53 |
halfer Messages: 8778 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
That's more like it 
And if you switch to using ORM-aware routing, you will be able to save yourself an extra select, by retrieving the forum/topic object from the routing object.
Remember Gaza
|
|
|
| Topic: Helper (linkToDelete) Question |
|---|
| Helper (linkToDelete) Question [message #95901] |
Sun, 21 March 2010 13:44 |
gmars Messages: 2 Registered: February 2010 |
Junior Member |
|
|
Hi,
There's something that I'm not getting...
Let's say I have an edit form for a Manufacturer, on the same page I have a table listing the cars produced by this manufacturer. This is rendered using a partial.
If I use $helper->linkToDelete() to create an object action delete link in my cars list, it creates a link to the manufacturer, not the car - how do I override this?
|
|
|
| Topic: hide a field when it is requiered as foreign key |
|---|
| hide a field when it is requiered as foreign key [message #95902] |
Sun, 21 March 2010 13:50 |
kamagatos Messages: 1 Registered: March 2010 |
Junior Member |
|
|
Hi!
I'm working with a symfony form and i've 2 tables user and message.
When the user is authenticated, I just want to let him leave a message on the board but there is the foreign key user_id defined as visible in the form.
$this->setWidgets(array(
'id' => new sfWidgetFormInputHidden(),
'user_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('sfGuardUser'), 'add_empty' => false)),
'notif_message' => new sfWidgetFormTextarea(),
...
I just want to hide the user_id column but when I unset it or when I use $this->usefields(array('notif_message')), I have an error =>
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`aito`.`notification`, CONSTRAINT `notification_user_id_sf_guard_user_id` FOREIGN KEY (`user_id`) REFERENCES `sf_guard_user` (`id`) ON DELETE CASCADE)
please help
thanks
[Updated on: Sun, 21 March 2010 13:50]
|
|
|
| Topic: Does Doctrine create relationship methods like Propel? |
|---|
| Re: Does Doctrine create relationship methods like Propel? [message #95904 is a reply to message #95858 ] |
Sun, 21 March 2010 16:14 |
halfer Messages: 8778 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
Not a Doctrine user, so can't advise myself, but the project documentation is sure to have the answer. Do a web search for "doctrine project".
Remember Gaza
|
|
|