[symfony-users] Re: wrong-generated sql-query (symfony propel-generate-crud)

2008-04-16 Thread Georg Sorst
Hi Dan, looks very much like you are passing the wrong value (ie. NULL) to the RetrieveByPK() method. Can you check if this might be the case? Cheers, Georg Dan Jipa schrieb: > > One of my actions in a module calls the *RetrievebyPK method* and > generated 0 results. > I've used the debug mode

[symfony-users] Re: Accesing config values

2008-04-08 Thread Georg Sorst
Hey Reynier, the second line in your app.yml should be indented because it is a subkey of dev, so to say. So it should look like this: dev: CantidadCategorias: 2 If this doesn't help, have a look at the cached output of app.yml which should be at cache/myapps/dev/config/config_app.yml.php to

[symfony-users] Re: sfGuardPlugin installation nightmare! :-(

2008-04-08 Thread Georg Sorst
Hey Sid, just to get an idea, what's being displayed instead of the login page? What happens if you directly access the login page (there should be a special route /login or just use /sfGuardAuth/signin )? Could you probably upload the symfony log somewhere? Cheers, Georg Sid Bachtiar schrieb:

[symfony-users] Re: Problems to get Oracle working - databases.yml

2008-04-04 Thread Georg Sorst
Hey Pedro, I can't really help you with the issue itself, but can you check if a connection to the Oracle DB is actually made when you request your page by looking at the Oracle logs or something similar? Too bad the error message isn't printed out correctly by Symfony. Cheers, Georg Pedro Casa

[symfony-users] Re: Modules organisation

2008-04-03 Thread Georg Sorst
Hi Nicolas, what's your motivation behind this separation you are trying to achieve? Anyway, this separation is already built into Symfony, just not across different files and directories depending on the layer. The URL myproject/product/listproduct/ for example will actually call the executeLi

[symfony-users] sfPropelVersionableBehaviorPlugin: creating a new resource version without modifying the resource

2008-03-28 Thread Georg Sorst
Hey list, I am currently looking for a way to create a new resource version without modifying the resource itself. The problem is that in order to create a new resource version the behavior's preSave() and postSave() hooks have to be called which is done implicitly by calling the resource's save(

[symfony-users] Re: Nested Set without single root?

2008-03-28 Thread Georg Sorst
Hi Daniel, Richtermeister schrieb: > Hey guys, > > thanks for the responses, but now I'm confused.. > If I call make-root on a new node, and do that with many nodes > (supposedly my root layer) they all have 1 as left, and thus this > can't be right. Having a common root works, but semantically

[symfony-users] Re: sfPropelActAsTaggableBehavior and mixins

2008-03-27 Thread Georg Sorst
Hi Gergo, according to the behavior's documentation there really is no 'removeTags' method, just 'removeAllTags' or 'removeTag'. Are you sure you're using the right method? Cheers, Georg pihentagy schrieb: > Hi all! > > I've tried to implement deleting all tags belonging to an object with > m

[symfony-users] Re: Working with slots first time

2008-03-27 Thread Georg Sorst
Hi Reynier, sounds good so far, but it depends on what your action is doing. Just calling the 'license' module with no action name will call executeIndex(). From there you can forward() to 'license/editAutor' which will call executeEditAutor(). Just return sfView::SUCCESS in that action and you s

[symfony-users] Re: dev environment not running with linux

2008-03-27 Thread Georg Sorst
Hey Martin, I'm a little late but this bug report might help: http://trac.symfony-project.com/ticket/2438 Using this allows me to actually use xdebug as a debugger :) Cheers, Georg Martin Groh schrieb: > Please stop bothering!! I've got it! > There seem to be problems with my xdebug configurat

[symfony-users] Re: sfGuard: getUsername in template

2008-03-07 Thread Georg Sorst
Hey Pierre, $sf_user->getGuardUser()->getUsername() works for me. Did you do the whole myUser.class.php thing ( http://trac.symfony-project.com/wiki/sfGuardPluginFor10#Secureyourapplication ) ? Can you check that $sf_user is an object of class myUser and that myUser.class.php extends sfGuardSecur

[symfony-users] Re: "Smart" Routing Rules?

2008-03-07 Thread Georg Sorst
Hey Daniel, This is certainly not the smartest solution but it's probably as good as the requirements: ... you mentioned as long as they don't really exist :) Couldn't you check in the executeShowPage action whether the requested page_name is actually the name of an existing module, and if so, fo

[symfony-users] Re: Askeet Day3 : php load_data.php

2008-03-07 Thread Georg Sorst
40 lib/model/UserPeer.php >>>> Right, I try to rebuild, I execute (again) this command : >>>> [EMAIL PROTECTED] askeet]$ symfony propel-build-model >>>> [...] >>>> BUILD FINISHED >>>> Total time: 4.6286 seconds >>>>>> file- /h

[symfony-users] Re: Separete in three phisical layers a symfony project

2008-03-07 Thread Georg Sorst
Good question, I wonder what other more knowledgeable persons have to say to that. Just from the top of my mind, I don't think you can actually divide a symfony project across multiple servers. However I can see two other ways to use your three servers and share the load: 1. You can setup some l

[symfony-users] Re: Maintaining DB scripts using Propel

2008-03-06 Thread Georg Sorst
For a quicker and of course dirtier way I've been using mysqldiff ( http://www.mysqldiff.org/ ), a little PHP app that is able to generate diffs between two SQL schemas or DBs. You can for example create a diff between your development and your production database and then apply this diff to your

[symfony-users] Re: Askeet Day3 : php load_data.php

2008-03-05 Thread Georg Sorst
Hi David, if you just want to load fixtures there is already a task for that, it's called php symfony propel-load-data That's not in accordance with the askeet tutorial but it's the way of the symfony pro user ;) Have a look at http://www.symfony-project.org/book/1_0/16-Application-Managemen

[symfony-users] Re: Putting forms in session

2008-03-05 Thread Georg Sorst
Is that really an issue? I mean, in a production environment you would probably shut down your site and clear all sessions anyway before you move to the new code. Cheers, Georg Thomas Rabaix schrieb: > CO2, let's imagine the situation : > - you store an object in the session > - then you refa

[symfony-users] Re: sfAdmin generator auto components

2008-03-03 Thread Georg Sorst
Hi florynth, did you create a new admin generator template which should also create an autoModuleNameComponent? If not, then no such component will be generated and you should just extend sfComponents like you would with a normal component in a module. If you have in fact added a component to th

[symfony-users] Re: how to discover types in propel model?

2008-03-03 Thread Georg Sorst
Hi Mohammad, do you want to use type-checking for your model depending on the column type or do you want to get some information about the corresponding table from your model? For the first case, Propel should already do that. For the latter case, you can get all kinds of information about the c

[symfony-users] Re: Efficiently retrieving data from 1:n and n:m relations

2008-02-25 Thread Georg Sorst
Hey there, there doesn't really seem to be a clean way with Propel 1.2, but a possible solution isn't too complex. CO2 schrieb: > I have trouble finding a good solution to the following tasks: > > Schema 1: > item: > id: > customer: > item_id: > > I need to output a list of customers with

[symfony-users] Re: adding extra to sf_gurad_group

2008-02-15 Thread Georg Sorst
I've run into this problem before on some occasions (not related to sfGuard) so I guess your solution should help. However, shouldn't symfony be able to resolve sf_guard_group_id to sf_guard_group:id? Any idea what's the issue? Cu, Georg Kiril Mitev schrieb: > By replacing the field > > sf_guar

[symfony-users] Re: Extending a plugin -- this or parent?

2008-02-15 Thread Georg Sorst
Hey everyone, actually, according to http://us3.php.net/manual/en/language.oop5.paamayim-nekudotayim.php parent::firstDayOfWeek is correct for accessing a non-static method in the parent class. The problem might be that 'firstDayOfWeek()' is available as as static function from sfTime and as a c

[symfony-users] Re: Versioning many-to-many relations

2008-02-15 Thread Georg Sorst
); // -> creates version 2 > > $article->toVersion(1); > echo $article->getAuthor()->getName(); // john > > François > > > 2008/2/13, Georg Sorst <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: > > > Hey Francois, > > Francoi

[symfony-users] Re: Versioning many-to-many relations

2008-02-13 Thread Georg Sorst
the revision author. > > Or did I miss your point ? Actually, yes. I want to be able to restore an old version and see to which foreign objects this object had been linked in the previous version through the many-to-many relations. > > François > Best regards, Georg >

[symfony-users] Versioning many-to-many relations

2008-02-12 Thread Georg Sorst
Hey everyone, I'm happily using the sfPropelVersionableBehaviorPlugin which just got a lot better thanks to the recent improvements. However I've run into a problem or limitation which I'm not sure how to handle. When using many-to-many relations (say Author-AuthorArticle-Article) the middle tab

[symfony-users] Re: updateFromReuqest - security issue

2008-02-12 Thread Georg Sorst
Is this true for all "plain" fields or just "updated/created_at"? Anyway, shouldn't this bug be filed? Cheers Georg Nathanael D. Noblet schrieb: > pihentagy wrote: >> Hi all! >> >> I've peeked into the generated auto___Actions class, and especially >> the update___FromRequest method. >> >> Since

[symfony-users] Re: [sfGuardPlugin] design problems

2008-02-12 Thread Georg Sorst
Hi Ingmar, for a quick start this should be quite possible using the admin generator if I'm not missing something. Ingmar Heinrich schrieb: > Hi there, > > I will use sfGuardPlugin the first time soon, but I'm having trouble > designing the logic and the backend. > > I'm having a User table wh

[symfony-users] Re: datetime and now

2008-02-05 Thread Georg Sorst
Hi pihentagy, what's wrong with created_at and updated_at? Besides that, just take a look in your generated model (BaseSomething class, function save() ) how these two "magic" columns are handled there, and you will see that it's pretty simple actually. Cheers, Georg pihentagy schrieb: > Hi all

[symfony-users] Re: admin generator (and general) error handling & flash message

2008-01-31 Thread Georg Sorst
Hey pihentagy, by redirecting to the referrer I assume the user will end up at the list view, right? The reason you are not seeing your flash message there is that it simply is not displayed in the list view. Have a look at both _edit_message.php and _list_message.php in your admin generator tem

[symfony-users] Keeping propel.ini passwords in a separate file

2008-01-25 Thread Georg Sorst
Hey everyone, I am currently looking for a way to keep the passwords and in fact the entire MySQL URL (propel.database.url / propel.database.createUrl) used in propel.ini in a separate file. The main reason behind this is keeping passwords from being committed to SVN. Furthermore, when the Symfo

[symfony-users] Re: Conditions object_actions in admin generator

2007-12-07 Thread Georg Sorst
or theme.. > _list_actions.php I think ... > > Georg Sorst wrote: > >> Hey list! >> >> I am currently looking for a way make the object_actions of the admin >> generator conditional so that they are only displayed when the object in >> that row matches a certain conditi

[symfony-users] Conditions object_actions in admin generator

2007-12-06 Thread Georg Sorst
Hey list! I am currently looking for a way make the object_actions of the admin generator conditional so that they are only displayed when the object in that row matches a certain condition. In my case this condition is a flag saying whether the user wants to be notified of changes to this ob