Questions tagged [hydration]

Hydration is a service provided through Adobe phonegap build that allows for installed applications to be updated over the internet.

More information can be found on their product page http://docs.phonegap.com/phonegap-build/tools/hydration/

143 questions
0
votes
2 answers

ZF2 Properties name in model does not correspond to database columns

I have a User model that contains some properties-let's say firstName and lastName-but in my database I store them as first_name and last_name. inside User Form I use a hydrator like so: $this->setHydrator(new ClassMethods(true)); The debug…
Br.sasa
  • 49
  • 1
  • 8
0
votes
1 answer

Register Symfony Hydrators in Isolated Bundle

I have created several modular applications, which shared Bundles. One of these bundles responsible for handling all entity/repository related logic (lets call it MyBundle). This MyBundle contains several custom hydrators. How can I register these…
ExoticChimp
  • 1,884
  • 1
  • 19
  • 37
0
votes
1 answer

ZF2: How to hydrate into two different classes

I'm quite new to Zend Framework 2, so I'd like to ask for your help on a doubt about hydration: I've got a ResultSet that I'm hydrating into shipping methods - most of them are standard, but there are some custom shipping methods, identified in the…
David
  • 7
  • 3
0
votes
0 answers

Doctrine2 + ZF2: Hydrate entity that has a many-to-many association via join-table with metadata

I have two entities Rental and Item. Items are associated to Rentals via a join table including some metadata, so that the join table effectively becomes a third entity RentedItem. Because a RentedItem can be identified by its associated Rental and…
Subsurf
  • 1,256
  • 1
  • 17
  • 28
0
votes
1 answer

User Object in a one-to-one relationship using primary key shared with foreign key

Iterations of this question have been asked in the past, but this presents unique challenges as it combines some of the issues in one larger problem. I have an entity(User) that is used as the user class in my application, then I have another entity…
ABM_Dan
  • 238
  • 4
  • 14
0
votes
4 answers

Repeat substring which is trailed by a multiplier expression

I have a string containing multiple words and I want to expand expressions that indicate multiples of words. $string = '(red, white (X2), green, black, grey (X2))'; When a word is immediately followed by (X2) (or any integer after X wrapped in…
Steve
  • 59
  • 8
1 2 3
9
10