Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 7f8f605

Browse files
author
Tito Costa
committed
added entity and changed the repository name to be prefixed with lendable
1 parent e676f7c commit 7f8f605

3 files changed

Lines changed: 113 additions & 3 deletions

File tree

Entity/FormErrorLogEntity.php

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?php
2+
3+
namespace Oh\FormErrorLogBundle\Entity;
4+
5+
use Doctrine\ORM\Mapping as ORM;
6+
use Oh\FormErrorLogBundle\Entity\FormErrorLogEntityInterface;
7+
8+
/**
9+
* @ORM\Table(name="form_error_log")
10+
* @ORM\Entity
11+
*/
12+
class FormErrorLog implements FormErrorLogEntityInterface
13+
{
14+
15+
/**
16+
* @var integer $id
17+
*
18+
* @ORM\Column(name="id", type="integer")
19+
* @ORM\Id
20+
* @ORM\GeneratedValue(strategy="AUTO")
21+
*/
22+
private $id;
23+
24+
/**
25+
* @ORM\Column(name="form_name", type="string", length=255)
26+
* @var type
27+
*/
28+
private $form_name;
29+
30+
/**
31+
* @var string $field
32+
*
33+
* @ORM\Column(name="field", type="string", length=255)
34+
*/
35+
private $field;
36+
37+
/**
38+
* @var string $error
39+
*
40+
* @ORM\Column(name="error", type="string", length=2000)
41+
*/
42+
private $error;
43+
44+
/**
45+
* @var string $error
46+
*
47+
* @ORM\Column(name="value", type="string", length=2000)
48+
*/
49+
private $value;
50+
51+
/**
52+
* @var string $uri
53+
*
54+
* @ORM\Column(type="string", length=512)
55+
*/
56+
private $uri;
57+
58+
public function getFormName()
59+
{
60+
return $this->form_name;
61+
}
62+
63+
public function setFormName($formName)
64+
{
65+
$this->form_name = $formName;
66+
}
67+
68+
public function getField()
69+
{
70+
return $this->field;
71+
}
72+
73+
public function setField($field)
74+
{
75+
$this->field = $field;
76+
}
77+
78+
public function getError()
79+
{
80+
return $this->error;
81+
}
82+
83+
public function setError($error)
84+
{
85+
$this->error = $error;
86+
}
87+
88+
public function getValue()
89+
{
90+
return $this->value;
91+
}
92+
93+
public function setValue($value)
94+
{
95+
$this->value = $value;
96+
}
97+
98+
public function setUri($uri)
99+
{
100+
$this->uri = $uri;
101+
102+
return $this;
103+
}
104+
105+
public function getUri()
106+
{
107+
return $this->uri;
108+
}
109+
110+
}

Resources/config/services.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
parameters:
22
oh_form_error_log.listener.class: Oh\FormErrorLogBundle\EventListener\ErrorLogSubscriber
3-
oh_form_error_log.logger.class: Oh\FormErrorLogBundle\Logger\Logger
3+
oh_form_error_log.logger.class: Oh\FormErrorLogBundle\Logger\Logger
44
oh_form_error_log.db.class: Oh\FormErrorLogBundle\Logger\DatabaseLogger
5-
oh_form_error_log.db.entity.class: Oh\FormErrorLogBundle\Entity\FormErrorLogEntityInterface
5+
oh_form_error_log.db.entity.class: Oh\FormErrorLogBundle\Entity\FormErrorLogEntity
66

77
services:
88
oh_form_error_log.logger.db:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "oh/form-error-log-bundle",
2+
"name": "lendable/form-error-log-bundle",
33
"type": "symfony-bundle",
44
"description": "Log form errors",
55
"keywords": ["form", "Symfony2"],

0 commit comments

Comments
 (0)