Postgresql unix socket

2009-06-08 Thread die...@be
Hi, is it just me, or does connecting to a postgresql database through a unix socket not work? The documentation (http://book.cakephp.org/view/40/Database- Configuration) says I can put the socket path in the 'port' field of the database config, so I did that: var $production = array(

Re: how to generate views for "recursive 2" associations?

2009-02-11 Thread die...@be
On Feb 11, 12:18 pm, "die...@be" wrote: > I think I'll try to fix the code and file a bug/patch I fixed it :) https://trac.cakephp.org/ticket/6087 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: how to generate views for "recursive 2" associations?

2009-02-11 Thread die...@be
I've been going through the sources and I think I've found out why cake behaves like this. Check https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/console/libs/tasks/view.php#L372 It seems that here only first level associations are set, independent of any $recursive parameter. I think

Re: how to generate views for "recursive 2" associations?

2009-02-11 Thread die...@be
On Jan 26, 4:52 pm, RoVo wrote: > Hi Dieter, > > an example. We have 3 models (HABTM): > Posts <-> PostsTag <-> Tag > > If I bake only Posts and Tag (model, controller and views), I get a > results like yours . NO related Tags > > NOW I bake the PostsTag-model with belongsTo Post and belongsTo Ta

how to generate views for "recursive 2" associations?

2009-01-26 Thread die...@be
Hi, I'm try to bake views which also show associated items of the associated items I'm showing. The problem is, I can't find any variable in the bake template that tells me anything about these "2nd level" associations. Eg after setting var $recursive = 2; in the model, or $this->Model- >recursiv

The best way to use named parameters as search conditions for pagination?

2009-01-21 Thread die...@be
Hi all, I want to use pagination, but also named parameters to form conditions to restrict my resultset. Example: Customer hasmany contract, contract belongsTo Customer (foreign key customer_id) I want to be able to paginate contracts, but also only view (paginated) the contracts of a certain cus

Re: Views (or templates) where you can save associated items at once

2009-01-20 Thread die...@be
http://book.cakephp.org/view/75/Saving-Your-Data Looks like this is pretty easy to code, but still the question remains: are there any bake templates around for things like this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Views (or templates) where you can save associated items at once

2009-01-20 Thread die...@be
Hi, suppose you have these models: model foo belongsto bar, bar hasmany foo. On the form of /foos/add I want this: - the fields to create a foo (this is what we usually have) - but also: the fields to create a new associated bar. this is usefull, and even a must if no bars exist yet. On submiss

Not repeating view code for multiple items on their index page and on view pages of items they belongo.

2009-01-14 Thread die...@be
Hi fellow bakers, long time no see. I have this issue: Customer hasmany users, user belongsto customer. Now, in the customerscontroller's index action I can set $this- >Customer->recursive = 1; If I then generate the views for customer, I nicely see the associated users when viewing a customer. B