We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Relation object
Lo que hace esto es clonar el objeto Relation, devolviendo un nuevo objeto Relation en lugar de modificar el ya existente.
Al invocar where sobre el modelo se crea un nuevo objeto Relation sobre el cual volvemos a invocar limit lo que hace que se clone la relación con argumentos adicionales en el objeto clonado.
A new Relation object is created when we call where and when we call limit on that the relation is cloned and the additional arguments are added and stored in the cloned object.
Sabemos que limit está siendo invocado sobre un objeto Relation pero la llamada a where se lanza directamente sobre el modelo Task y por tanto en ActiveRecord::Base en lugar de Relation.
We know that limit is being called on a Relation but what about the where call? This is called directly on the Task model and therefore on ActiveRecord::Base rather than Relation so where is the initial Relation object created?
Devuelve un objeto Relation, por lo que nos iremos a la definición de esta clase, cuyo inicializador tan solo recibe la clase y tabla que se le pasan y los almacena en una variable de instancia.
The initializer for this class just takes in the class and table that are passed to it and stores them in an instance variable.
En cada bloque añadimos los argumentos recibidos en el método al conjunto apropiado de valores del objeto QueryMethods que nos devuelve una versión clonada del objeto Relation.
In each block we add the arguments that are passed into the method to the appropriate set of values in the Relation object.
Andere resultaten
El que las consultas devuelvan un objeto ActiveRecord::Relation es lo que nos permite encadenar consultas seguidas, y lógicamente la clase Relation está en el centro de la nueva sintaxis.
The Relation Class Having queries return an ActiveRecord::Relation object allows us to chain queries together and this Relation class is at the heart of the new query syntax.
El objeto de la presente invencion es un puerto para la realization de operaciones de cirugia laparoscópica con una novedosa constitución mejorada con relation a los puertos actualmente conocidos.
The invention relates to a port used for performing laparoscopic surgical procedures, having a novel composition that is improved in relation to known ports.
Esta vez en lugar de recibir una lista de artículos tenemos un objeto de tipo ActiveRecord::Relation, que guarda información sobre la consulta, pero ésta aún no ha sido ejecutada.
Instead of a list of articles being returned this time we have an ActiveRecord::Relation object. This object stores information about our find, but the database query hasn't yet been made.
El objeto devuelto es de tipo ActiveRecord::Relation que se puede combinar normalmente con el resto de ámbitos de Squeel donde se muestra una tabla con la lista de operadores soportados, así como el operador SQL equivalente.
We can see this if we look at the Squeel README which has a table showing a list of the operators that Arel supports along with the equivalent SQL operator.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.