Skip to content

Instantly share code, notes, and snippets.

@Etheriq
Created October 21, 2015 11:43
Show Gist options
  • Save Etheriq/28c14a15492b466527f1 to your computer and use it in GitHub Desktop.
Save Etheriq/28c14a15492b466527f1 to your computer and use it in GitHub Desktop.
example for generating users and products
AppBundle\Entity\User:
user{1..30}:
name: <name()>
email: <email()>
password: <sha1()>
address: <address()>
lat: <latitude()>
lng: <longitude()>
phone: <phoneNumber()>
zip: <postcode()>
website: <domainName()>
ip: <ipv4()>
products: 2x @product*
AppBundle\Entity\Product:
product{1..20}:
title: <words(3, true)>
weight: <randomDigit()>
color: <colorName()>
fragile: <randomElement([true, false])>
user (unique): @user*
categories: 2x @category*
tags: 3x @tag*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment