Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

added updater tests #15

Merged
merged 13 commits into from
Aug 3, 2015
24 changes: 12 additions & 12 deletions src/Entities/ActionLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,44 +15,44 @@ class ActionLog {
* @var \DateTime
*
* @ORM\Version
* @ORM\Column(name="al_timestamp", type="datetime", nullable=false)
* @ORM\Column(name="al_timestamp", type="datetime", options={"default":"1970-01-01 00:00:00"}, nullable=false)
*/
private $alTimestamp;
private $alTimestamp = '1970-01-01 00:00:00';

/**
* @var string
*
* @ORM\Column(name="al_type", type="string", length=16, nullable=false)
* @ORM\Column(name="al_type", type="string", length=16, options={"default":""}, nullable=false)
*/
private $alType;
private $alType = '';

/**
* @var string
*
* @ORM\Column(name="al_remote_addr", type="string", length=16, nullable=false)
* @ORM\Column(name="al_remote_addr", type="string", length=16, options={"default":""}, nullable=false)
*/
private $alRemoteAddr;
private $alRemoteAddr = '';

/**
* @var string
*
* @ORM\Column(name="al_session_id", type="string", length=32, nullable=false)
* @ORM\Column(name="al_session_id", type="string", length=32, options={"default":""}, nullable=false)
*/
private $alSessionId;
private $alSessionId = '';

/**
* @var string
*
* @ORM\Column(name="al_username", type="string", length=45, nullable=false)
* @ORM\Column(name="al_username", type="string", length=45, options={"default":""}, nullable=false)
*/
private $alUsername;
private $alUsername = '';

/**
* @var string
*
* @ORM\Column(name="al_password", type="string", length=32, nullable=false)
* @ORM\Column(name="al_password", type="string", length=32, options={"default":""}, nullable=false)
*/
private $alPassword;
private $alPassword = '';

/**
* @var integer
Expand Down
16 changes: 8 additions & 8 deletions src/Entities/BackendBanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@ class BackendBanner {
/**
* @var string
*
* @ORM\Column(name="cn_name", type="string", length=100, nullable=false)
* @ORM\Column(name="cn_name", type="string", length=100, options={"default":""}, nullable=false)
*/
private $cnName;
private $cnName = '';

/**
* @var string
*
* @ORM\Column(name="layout", type="string", length=100, nullable=false)
* @ORM\Column(name="layout", type="string", length=100, options={"default":""}, nullable=false)
*/
private $layout;
private $layout = '';

/**
* @var string
*
* @ORM\Column(name="campaign", type="string", length=100, nullable=false)
* @ORM\Column(name="campaign", type="string", length=100, options={"default":""}, nullable=false)
*/
private $campaign;
private $campaign = '';

/**
* @var string
*
* @ORM\Column(name="keyword", type="string", length=100, nullable=false)
* @ORM\Column(name="keyword", type="string", length=100, options={"default":""}, nullable=false)
*/
private $keyword;
private $keyword = '';

/**
* @var integer
Expand Down
12 changes: 6 additions & 6 deletions src/Entities/BackendImpressions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ class BackendImpressions {
/**
* @var integer
*
* @ORM\Column(name="banner_id", type="integer", options={"unsigned"=true}, nullable=false)
* @ORM\Column(name="banner_id", type="integer", options={"unsigned"=true}, options={"default":0}, nullable=false)
*/
private $bannerId;
private $bannerId = 0;

/**
* @var \DateTime
*
* @ORM\Column(name="datetime", type="datetime", nullable=false)
* @ORM\Column(name="datetime", type="datetime", options={"default":"1970-01-01 00:00:00"}, nullable=false)
*/
private $datetime;
private $datetime = '1970-01-01 00:00:00';

/**
* @var integer
*
* @ORM\Column(name="imp_count", type="integer", options={"unsigned"=true}, nullable=false)
* @ORM\Column(name="imp_count", type="integer", options={"unsigned"=true}, options={"default":0}, nullable=false)
*/
private $impCount;
private $impCount = 0;

/**
* @var integer
Expand Down
54 changes: 27 additions & 27 deletions src/Entities/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Request {
/**
* @var \DateTime
*
* @ORM\Column(name="timestamp", type="datetime", nullable=false)
* @ORM\Column(name="timestamp", type="datetime", options={"default":"1970-01-01 00:00:00"}, nullable=false)
*/
private $timestamp;
private $timestamp = '1970-01-01 00:00:00';

/**
* @var string
Expand All @@ -50,23 +50,23 @@ class Request {
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=250, nullable=false)
* @ORM\Column(name="name", type="string", length=250, options={"default":""}, nullable=false)
*/
private $name;
private $name = '';

/**
* @var string
*
* @ORM\Column(name="vorname", type="string", length=50, nullable=false)
* @ORM\Column(name="vorname", type="string", length=50, options={"default":""}, nullable=false)
*/
private $vorname;
private $vorname = '';

/**
* @var string
*
* @ORM\Column(name="nachname", type="string", length=50, nullable=false)
* @ORM\Column(name="nachname", type="string", length=50, options={"default":""}, nullable=false)
*/
private $nachname;
private $nachname = '';

/**
* @var string
Expand All @@ -92,42 +92,42 @@ class Request {
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=250, nullable=false)
* @ORM\Column(name="email", type="string", length=250, options={"default":""}, nullable=false)
*/
private $email;
private $email = '';

/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=30, nullable=false)
* @ORM\Column(name="phone", type="string", length=30, options={"default":""}, nullable=false)
*/
private $phone;
private $phone = '';

/**
* @var \DateTime
*
* @ORM\Column(name="dob", type="date", nullable=false)
* @ORM\Column(name="dob", type="date", options={"default":"0000-00-00"}, nullable=false)
*/
private $dob;
private $dob = '0000-00-00';

/**
* @var string
*
* @ORM\Column(name="wikimedium_shipping", type="string", nullable=false)
* @ORM\Column(name="wikimedium_shipping", type="string", options={"default":""}, nullable=false)
*/
private $wikimediumShipping;
private $wikimediumShipping = 'none';

/**
* @var string
*
* @ORM\Column(name="membership_type", type="string", nullable=false)
* @ORM\Column(name="membership_type", type="string", options={"default":"sustaining"}, nullable=false)
*/
private $membershipType;
private $membershipType = 'sustaining';

/**
* @var integer
*
* @ORM\Column(name="membership_fee", type="integer", nullable=false)
* @ORM\Column(name="membership_fee", type="integer", options={"default":0}, nullable=false)
*/
private $membershipFee = 0;

Expand All @@ -142,23 +142,23 @@ class Request {
/**
* @var string
*
* @ORM\Column(name="account_number", type="string", length=16, nullable=false)
* @ORM\Column(name="account_number", type="string", length=16, options={"default":""}, nullable=false)
*/
private $accountNumber;
private $accountNumber = '';

/**
* @var string
*
* @ORM\Column(name="bank_name", type="string", length=50, nullable=false)
* @ORM\Column(name="bank_name", type="string", length=50, options={"default":""}, nullable=false)
*/
private $bankName;
private $bankName = '';

/**
* @var string
*
* @ORM\Column(name="bank_code", type="string", length=16, nullable=false)
* @ORM\Column(name="bank_code", type="string", length=16, options={"default":""}, nullable=false)
*/
private $bankCode;
private $bankCode = '';

/**
* @var string
Expand All @@ -177,9 +177,9 @@ class Request {
/**
* @var string
*
* @ORM\Column(name="account_holder", type="string", length=50, nullable=false)
* @ORM\Column(name="account_holder", type="string", length=50, options={"default":""}, nullable=false)
*/
private $accountHolder;
private $accountHolder = '';

/**
* @var string
Expand Down
16 changes: 8 additions & 8 deletions src/Entities/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ class Users {
/**
* @var string
*
* @ORM\Column(name="user_name", type="string", length=32, nullable=false)
* @ORM\Column(name="user_name", type="string", length=32, options={"default":""}, nullable=false)
*/
private $userName;
private $userName = '';

/**
* @var string
*
* @ORM\Column(name="user_address", type="string", length=64, nullable=false)
* @ORM\Column(name="user_address", type="string", length=64, options={"default":""}, nullable=false)
*/
private $userAddress;
private $userAddress = '';

/**
* @var string
*
* @ORM\Column(name="user_pass", type="string", length=32, nullable=false)
* @ORM\Column(name="user_pass", type="string", length=32, options={"default":""}, nullable=false)
*/
private $userPass;
private $userPass = '';

/**
* @var \DateTime
Expand All @@ -49,9 +49,9 @@ class Users {
/**
* @var string
*
* @ORM\Column(name="user_salt", type="string", length=8, nullable=false)
* @ORM\Column(name="user_salt", type="string", length=8, options={"default":""}, nullable=false)
*/
private $userSalt;
private $userSalt = '';

/**
* @var boolean
Expand Down
Loading