Skip to content

Instantly share code, notes, and snippets.

@Monomachus
Created January 25, 2012 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Monomachus/1675612 to your computer and use it in GitHub Desktop.
Save Monomachus/1675612 to your computer and use it in GitHub Desktop.
Faker as I thought it should be.
bazinga_faker:
orm: doctrine
entities:
Udevi\ChurchBundle\Entity\Person:
number: 25
custom_formatters:
LastName: { method: lastName }
FirstName: { method: firstName }
Active: { method: boolean, parameters: [100]}
BirthDay: { method: dateTimeThisCentury }
WorkPhone: { method: randomNumber, parameters: [8]}
CellPhone: { method: randomNumber, parameters: [11]}
EnvelopeNumber: { method: randomNumber, parameters: [3] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment