Created
October 21, 2015 11:43
-
-
Save Etheriq/28c14a15492b466527f1 to your computer and use it in GitHub Desktop.
example for generating users and products
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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