cake-php
[Arriba] [Todas las Listas]

Re: Fechas creadas y Modificadas no el coche puebla en HABTM

To: cake-php@xxxxxxxxxxxxxxxx
Subject: Re: Fechas creadas y Modificadas no el coche puebla en HABTM
From: Iñigo Garcia <soporte@xxxxxxxxxxxx>
Date: Tue, 11 Jun 2013 08:16:30 -0700 (PDT)
Delivery-date: Tue, 11 Jun 2013 12:47:29 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=K2R6NTjP03ZsrWTtSetGVaji2yCtD5WboVZt913gemw=; b=c98KICSTm1AtrhB2FY2tvuDT9FSA0TGWEBjFoe8QDJ6f8CSI9aMbLenu7iz7SlN0Mf QAFfYCeG+3F906a2ekFS01i+Bc0mlrUTR611ogLHAlTC5wpwrjBV659d6JBaR4Ir3aFM 4Qaq69BBbLjVM/q4irYqjTFwMOmgNJIX7CoWJ+kCvwik/Vnmg5esSC/t1oPd20f3WFUB wzm8lL5jSssXBf/T5h8HZhH6qWHONh8gbZRWWxLVtLYpd2YXaaUFa5nKv1jEHTviGm2k iv+xCoQ1a+y7kytkBPTAku3cHubPwTlOBjGmQcqpY+DHXBAcHXIiev6Z0rO5qXwnN4Hq XH9A==
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <2a07f2e3-55fc-4791-b21c-1fc15dbcdf14@i39g2000prd.googlegroups.com>
List-archive: <http://groups.google.com/group/cake-php?hl=en>
List-help: <http://groups.google.com/support/?hl=en>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post?hl=en>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe?hl=en>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe?hl=en>, <mailto:googlegroups-manage+1003367825667+unsubscribe@googlegroups.com>
Mailing-list: list cake-php@xxxxxxxxxxxxxxxx; contact cake-php+owners@xxxxxxxxxxxxxxxx
References: <df50f727-a4e4-4dab-a3ce-908779bfccf6@h40g2000pre.googlegroups.com> <e50312e5-2444-411e-a34c-5f3558b24ea7@v16g2000vbq.googlegroups.com> <8c406d3e-517a-4bbd-9284-6353aebe0053@a8g2000pri.googlegroups.com> <57ce2111-efcd-4906-979f-d2b0d025614f@i39g2000prd.googlegroups.com> <ee1fdb9d-d9b1-4637-af0c-70378eff2037@q36g2000yqn.googlegroups.com> <ba836cb7-beab-4af0-8cc7-2451f334d917@y3g2000vbh.googlegroups.com> <2a07f2e3-55fc-4791-b21c-1fc15dbcdf14@i39g2000prd.googlegroups.com>
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
Cómo  vas alrededor que finalmente? *i Soy en el mismo punto bien ahora.

*thanks

En viernes, febrero 18, 2011 3:33:35 PM *UTC+1, *rgreenphotodesign escribió:
>
> *Thanks para tomar una mirada *guys. Supe había razón por qué hizo 
> sentido a mí que las fechas no poblaban, justo no fue seguro si 
> había un trabajo alrededor. 
>
> *Thanks Para el consejo, lo conseguiré puesto con el unir modelo e ir de allí. 
> *Thanks Otra vez. 
>
> En *Feb 17, 3:10 *pm, *euromark <dereurom...@xxxxxxxxxxxxxx> escribió: 
> > *yep 
> > necesitarás desarrollar vuestro propio *HABTM *behavior que cuidará 
> > de que 
> > porque *john es bien, en el *default *HABTM mesa, sólo las llaves 
> > primarias de las dos mesas unidas son dejadas 
> > algo lamenté también en el pasado 
> > pero fácilmente puedes trabajar alrededor él - a mano :) 
> > 
> > En 17 *Feb., 22:10, John *Andersen <j.andersen...@xxxxxxxxx> escribió: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > pienso que necesitas tomar una mirada en El Unir Modelo en 
> > > el *CakePHP libro en:
> *http://libro.*cakephp.*org/#!/Vista/1650/*hasMany-#por-El-Unir-Modelo 
> > 
> > > como lo que quieres es para tener dato adicional en vuestra mesa de intersección 
> > > y *CakePHP el uso normal no deja aquello. 
> > > Si o no lo será capaz a automáticamente poblar las columnas 
> > > creadas y modificadas no es algo soy seguro sobre aun así! 
> > > Disfruta, 
> > >    John 
> > 
> > > En *Feb 17, 5:19 *pm, *rgreenphotodesign <rgr...@xxxxxxxxxxxxxxxxxxxxx> 
> > > escribió: 
> > 
> > > > Justo para la medida buena aquí es mis relaciones en los modelos: 
> > 
> > > > Actividad: 
> > 
> > > >         *var $*hasAndBelongsToMany = variedad( 
> > > >                 '*Statustype' => variedad( 
> > > >                         '*className' => '*Statustype', 
> > > >                         '*joinTable' => 'estados_de actividad', 
> > > >                         '*foreignKey' => 'actividades_*id', 
> > > >                         '*associationForeignKey' => '*statustypes_*id', 
> > > >                         'único' => falso, 
> > > >                         'condiciones' => '', 
> > > >                         'campos' => '', 
> > > >                         'orden' => '', 
> > > >                         'límite' => '', 
> > > >                         '*offset' => '', 
> > > >                         '*finderQuery' => '', 
> > > >                         '*deleteQuery' => '', 
> > > >                         '*insertQuery' => '' 
> > > >                 ), 
> > > >         ); 
> > 
> > > > *ActivityStatus: 
> > 
> > > >         *var $*belongsTo = variedad( 
> > > >                 '*Statustype' => variedad( 
> > > >                         '*className' => '*Statustype', 
> > > >                         '*foreignKey' => '*statustypes_*id', 
> > > >                         'condiciones' => '', 
> > > >                         'campos' => '', 
> > > >                         'orden' => '' 
> > > >                 ), 
> > > >                 'Actividad' => variedad( 
> > > >                         '*className' => 'Actividad', 
> > > >                         '*foreignKey' => 'actividades_*id', 
> > > >                         'condiciones' => '', 
> > > >                         'campos' => '', 
> > > >                         'orden' => '' 
> > > >                 ), 
> > > >         ); 
> > 
> > > > no defino cualesquier relaciones en el *Statustype modelo. 
> > 
> > > [*snip]

-- 
Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP

--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*CakePHP" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php?*hl=*en.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


How did you go around that finally? i am in the same point right now.

thanks

On Friday, February 18, 2011 3:33:35 PM UTC+1, rgreenphotodesign wrote:
>
> Thanks for taking a look guys. I knew there was reason why it made 
> sense to me that the dates weren't populating, just wasn't sure if 
> there was a work around. 
>
> Thanks for the advice, I'll get it set with the join model and go from 
> there. Thanks again. 
>
> On Feb 17, 3:10 pm, euromark <dereurom...@xxxxxxxxxxxxxx> wrote: 
> > yep 
> > you will need to develop your own HABTM behavior that will take care 
> > of that 
> > because john is right, in the default HABTM table, only the primary 
> > keys of the two joined tables are allowed 
> > something I regretted as well in the past 
> > but you can easily work around it - manually :) 
> > 
> > On 17 Feb., 22:10, John Andersen <j.andersen...@xxxxxxxxx> wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > I do think that you need to take a look at The Join Model in the 
> > > CakePHP book at:
> http://book.cakephp.org/#!/view/1650/hasMany-through-The-Join-Model 
> > 
> > > as what you want is to have additional data in your intersection table 
> > > and CakePHP normal usage does not allow that. 
> > > Whether or not it will be able to automatically populate the created 
> > > and modified columns is not something I am sure about though! 
> > > Enjoy, 
> > >    John 
> > 
> > > On Feb 17, 5:19 pm, rgreenphotodesign <rgr...@xxxxxxxxxxxxxxxxxxxxx> 
> > > wrote: 
> > 
> > > > Just for good measure here are my relationships in the models: 
> > 
> > > > Activity: 
> > 
> > > >         var $hasAndBelongsToMany = array( 
> > > >                 'Statustype' => array( 
> > > >                         'className' => 'Statustype', 
> > > >                         'joinTable' => 'activity_statuses', 
> > > >                         'foreignKey' => 'activities_id', 
> > > >                         'associationForeignKey' => 'statustypes_id', 
> > > >                         'unique' => false, 
> > > >                         'conditions' => '', 
> > > >                         'fields' => '', 
> > > >                         'order' => '', 
> > > >                         'limit' => '', 
> > > >                         'offset' => '', 
> > > >                         'finderQuery' => '', 
> > > >                         'deleteQuery' => '', 
> > > >                         'insertQuery' => '' 
> > > >                 ), 
> > > >         ); 
> > 
> > > > ActivityStatus: 
> > 
> > > >         var $belongsTo = array( 
> > > >                 'Statustype' => array( 
> > > >                         'className' => 'Statustype', 
> > > >                         'foreignKey' => 'statustypes_id', 
> > > >                         'conditions' => '', 
> > > >                         'fields' => '', 
> > > >                         'order' => '' 
> > > >                 ), 
> > > >                 'Activity' => array( 
> > > >                         'className' => 'Activity', 
> > > >                         'foreignKey' => 'activities_id', 
> > > >                         'conditions' => '', 
> > > >                         'fields' => '', 
> > > >                         'order' => '' 
> > > >                 ), 
> > > >         ); 
> > 
> > > > I don't define any relationships in the Statustype model. 
> > 
> > > [snip]

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>
  • Re: Fechas creadas y Modificadas no el coche puebla en HABTM, Iñigo Garcia <=