Remove EntityLog and revert doctrine.yaml for one entity manager. #330
This commit is contained in:
parent
b2154e28b8
commit
eb0fd34eec
2 changed files with 121 additions and 255 deletions
|
|
@ -4,163 +4,136 @@ parameters:
|
||||||
# environment variables are not available yet.
|
# environment variables are not available yet.
|
||||||
# You should not need to change this value.
|
# You should not need to change this value.
|
||||||
env(DATABASE_URL): ''
|
env(DATABASE_URL): ''
|
||||||
env(LOGGING_DATABASE_URL): ''
|
|
||||||
|
|
||||||
doctrine:
|
doctrine:
|
||||||
dbal:
|
dbal:
|
||||||
default_connection: default
|
# configure these for your database server
|
||||||
connections:
|
driver: 'pdo_mysql'
|
||||||
default:
|
server_version: '5.7'
|
||||||
# configure these for your database server
|
charset: utf8mb4
|
||||||
driver: 'pdo_mysql'
|
|
||||||
server_version: '5.7'
|
|
||||||
charset: utf8mb4
|
|
||||||
|
|
||||||
# With Symfony 3.3, remove the `resolve:` prefix
|
# With Symfony 3.3, remove the `resolve:` prefix
|
||||||
url: '%env(resolve:DATABASE_URL)%'
|
url: '%env(resolve:DATABASE_URL)%'
|
||||||
logging:
|
|
||||||
# configure these for your database server
|
|
||||||
url: '%env(resolve:LOGGING_DATABASE_URL)%'
|
|
||||||
driver: 'pdo_mysql'
|
|
||||||
server_version: '5.7'
|
|
||||||
charset: utf8mb4
|
|
||||||
types:
|
types:
|
||||||
geometry: CrEOF\Spatial\DBAL\Types\GeometryType
|
geometry: CrEOF\Spatial\DBAL\Types\GeometryType
|
||||||
point: CrEOF\Spatial\DBAL\Types\Geometry\PointType
|
point: CrEOF\Spatial\DBAL\Types\Geometry\PointType
|
||||||
polygon: CrEOF\Spatial\DBAL\Types\Geometry\PolygonType
|
polygon: CrEOF\Spatial\DBAL\Types\Geometry\PolygonType
|
||||||
linestring: CrEOF\Spatial\DBAL\Types\Geometry\LineStringType
|
linestring: CrEOF\Spatial\DBAL\Types\Geometry\LineStringType
|
||||||
multipolygon: CrEOF\Spatial\DBAL\Types\Geometry\MultiPolygonType
|
|
||||||
|
|
||||||
|
|
||||||
orm:
|
orm:
|
||||||
default_entity_manager: default
|
|
||||||
auto_generate_proxy_classes: '%kernel.debug%'
|
auto_generate_proxy_classes: '%kernel.debug%'
|
||||||
entity_managers:
|
naming_strategy: doctrine.orm.naming_strategy.underscore
|
||||||
logging:
|
auto_mapping: true
|
||||||
connection: logging
|
mappings:
|
||||||
naming_strategy: doctrine.orm.naming_strategy.underscore
|
App:
|
||||||
mappings:
|
is_bundle: false
|
||||||
Log:
|
type: annotation
|
||||||
is_bundle: false
|
dir: '%kernel.project_dir%/src/Entity'
|
||||||
type: annotation
|
prefix: 'App\Entity'
|
||||||
dir: '%kernel.project_dir%/src/Entity/Logging'
|
alias: App
|
||||||
prefix: 'App\Entity\Logging'
|
dql:
|
||||||
alias: Log
|
string_functions:
|
||||||
default:
|
# for postgresql
|
||||||
connection: default
|
geometry: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\Geometry
|
||||||
naming_strategy: doctrine.orm.naming_strategy.underscore
|
stbuffer: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STBuffer
|
||||||
auto_mapping: true
|
stcollect: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCollect
|
||||||
mappings:
|
stsnaptogrid: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSnapToGrid
|
||||||
App:
|
stoverlaps: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STOverlaps
|
||||||
is_bundle: false
|
# for match against
|
||||||
type: annotation
|
match_against: App\Doctrine\MatchAgainst
|
||||||
dir: '%kernel.project_dir%/src/Entity'
|
numeric_functions:
|
||||||
prefix: 'App\Entity'
|
# for postgresql
|
||||||
alias: App
|
starea: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STArea
|
||||||
dql:
|
stasbinary: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STAsBinary
|
||||||
string_functions:
|
stasgeojson: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STAsGeoJson
|
||||||
# for postgresql
|
stastext: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STAsText
|
||||||
geometry: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\Geometry
|
stazimuth: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STAzimuth
|
||||||
stbuffer: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STBuffer
|
stboundary: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STBoundary
|
||||||
stcollect: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCollect
|
stcentroid: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCentroid
|
||||||
stsnaptogrid: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSnapToGrid
|
stclosestpoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STClosestPoint
|
||||||
stoverlaps: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STOverlaps
|
stcontains: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STContains
|
||||||
# for match against
|
stcontainsproperly: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STContainsProperly
|
||||||
match_against: App\Doctrine\MatchAgainst
|
stcoveredby: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCoveredBy
|
||||||
numeric_functions:
|
stcovers: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCovers
|
||||||
# for postgresql
|
stcrosses: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCrosses
|
||||||
starea: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STArea
|
stdisjoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STDisjoint
|
||||||
stasbinary: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STAsBinary
|
stdistance: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STDistance
|
||||||
stasgeojson: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STAsGeoJson
|
stdistancesphere: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STDistanceSphere
|
||||||
stastext: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STAsText
|
stdwithin: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STDWithin
|
||||||
stazimuth: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STAzimuth
|
stenvelope: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STEnvelope
|
||||||
stboundary: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STBoundary
|
stexpand: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STExpand
|
||||||
stcentroid: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCentroid
|
stextent: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STExtent
|
||||||
stclosestpoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STClosestPoint
|
stgeomfromtext: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STGeomFromText
|
||||||
stcontains: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STContains
|
stintersection: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STIntersection
|
||||||
stcontainsproperly: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STContainsProperly
|
stintersects: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STIntersects
|
||||||
stcoveredby: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCoveredBy
|
stlength: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STLength
|
||||||
stcovers: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCovers
|
stlinecrossingdirection: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STLineCrossingDirection
|
||||||
stcrosses: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STCrosses
|
stlineinterpolatepoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STLineInterpolatePoint
|
||||||
stdisjoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STDisjoint
|
stmakebox2d: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STMakeBox2D
|
||||||
stdistance: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STDistance
|
stmakeline: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STMakeLine
|
||||||
stdistancesphere: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STDistanceSphere
|
stmakepoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STMakePoint
|
||||||
stdwithin: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STDWithin
|
stperimeter: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STPerimeter
|
||||||
stenvelope: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STEnvelope
|
stpoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STPoint
|
||||||
stexpand: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STExpand
|
stscale: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STScale
|
||||||
stextent: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STExtent
|
stsetsrid: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSetSRID
|
||||||
stgeomfromtext: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STGeomFromText
|
stsimplify: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSimplify
|
||||||
stintersection: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STIntersection
|
ststartpoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STStartPoint
|
||||||
stintersects: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STIntersects
|
stsummary: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSummary
|
||||||
stlength: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STLength
|
sttouches: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STTouches
|
||||||
stlinecrossingdirection: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STLineCrossingDirection
|
sttransform: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STTransform
|
||||||
stlineinterpolatepoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STLineInterpolatePoint
|
|
||||||
stmakebox2d: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STMakeBox2D
|
|
||||||
stmakeline: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STMakeLine
|
|
||||||
stmakepoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STMakePoint
|
|
||||||
stperimeter: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STPerimeter
|
|
||||||
stpoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STPoint
|
|
||||||
stscale: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STScale
|
|
||||||
stsetsrid: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSetSRID
|
|
||||||
stsimplify: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSimplify
|
|
||||||
ststartpoint: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STStartPoint
|
|
||||||
stsummary: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STSummary
|
|
||||||
sttouches: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STTouches
|
|
||||||
sttransform: CrEOF\Spatial\ORM\Query\AST\Functions\PostgreSql\STTransform
|
|
||||||
|
|
||||||
# for mysql
|
# for mysql
|
||||||
area: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Area
|
area: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Area
|
||||||
asbinary: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\AsBinary
|
asbinary: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\AsBinary
|
||||||
astext: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\AsText
|
astext: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\AsText
|
||||||
buffer: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Buffer
|
buffer: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Buffer
|
||||||
centroid: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Centroid
|
centroid: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Centroid
|
||||||
contains: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Contains
|
contains: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Contains
|
||||||
crosses: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Crosses
|
crosses: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Crosses
|
||||||
dimension: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Dimension
|
dimension: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Dimension
|
||||||
distance: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Distance
|
distance: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Distance
|
||||||
disjoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Disjoint
|
disjoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Disjoint
|
||||||
distancefrommultyLine: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\DistanceFromMultyLine
|
distancefrommultyLine: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\DistanceFromMultyLine
|
||||||
endpoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\EndPoint
|
endpoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\EndPoint
|
||||||
envelope: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Envelope
|
envelope: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Envelope
|
||||||
equals: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Equals
|
equals: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Equals
|
||||||
exteriorring: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\ExteriorRing
|
exteriorring: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\ExteriorRing
|
||||||
geodistpt: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GeodistPt
|
geodistpt: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GeodistPt
|
||||||
geometrytype: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GeometryType
|
geometrytype: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GeometryType
|
||||||
geomfromtext: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GeomFromText
|
geomfromtext: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GeomFromText
|
||||||
glength: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GLength
|
glength: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\GLength
|
||||||
interiorringn: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\InteriorRingN
|
interiorringn: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\InteriorRingN
|
||||||
intersects: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Intersects
|
intersects: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Intersects
|
||||||
isclosed: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\IsClosed
|
isclosed: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\IsClosed
|
||||||
isempty: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\IsEmpty
|
isempty: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\IsEmpty
|
||||||
issimple: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\IsSimple
|
issimple: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\IsSimple
|
||||||
linestringfromwkb: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\LineStringFromWKB
|
linestringfromwkb: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\LineStringFromWKB
|
||||||
linestring: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\LineString
|
linestring: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\LineString
|
||||||
mbrcontains: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRContains
|
mbrcontains: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRContains
|
||||||
mbrdisjoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRDisjoint
|
mbrdisjoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRDisjoint
|
||||||
mbrequal: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBREqual
|
mbrequal: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBREqual
|
||||||
mbrintersects: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRIntersects
|
mbrintersects: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRIntersects
|
||||||
mbroverlaps: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBROverlaps
|
mbroverlaps: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBROverlaps
|
||||||
mbrtouches: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRTouches
|
mbrtouches: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRTouches
|
||||||
mbrwithin: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRWithin
|
mbrwithin: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\MBRWithin
|
||||||
numinteriorrings: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\NumInteriorRings
|
numinteriorrings: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\NumInteriorRings
|
||||||
numpoints: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\NumPoints
|
numpoints: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\NumPoints
|
||||||
overlaps: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Overlaps
|
overlaps: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Overlaps
|
||||||
pointfromwkb: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\PointFromWKB
|
pointfromwkb: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\PointFromWKB
|
||||||
pointn: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\PointN
|
pointn: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\PointN
|
||||||
point: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Point
|
point: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Point
|
||||||
srid: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\SRID
|
srid: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\SRID
|
||||||
startpoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\StartPoint
|
startpoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\StartPoint
|
||||||
st_buffer: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STBuffer
|
st_buffer: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STBuffer
|
||||||
st_contains: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STContains
|
st_contains: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STContains
|
||||||
st_crosses: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STCrosses
|
st_crosses: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STCrosses
|
||||||
st_disjoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STDisjoint
|
st_disjoint: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STDisjoint
|
||||||
st_distance: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STDistance
|
st_distance: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STDistance
|
||||||
st_equals: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STEquals
|
st_equals: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STEquals
|
||||||
st_intersects: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STIntersects
|
st_intersects: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STIntersects
|
||||||
st_overlaps: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STOverlaps
|
st_overlaps: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STOverlaps
|
||||||
st_touches: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STTouches
|
st_touches: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STTouches
|
||||||
st_within: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STWithin
|
st_within: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\STWithin
|
||||||
touches: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Touches
|
touches: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Touches
|
||||||
within: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Within
|
within: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Within
|
||||||
x: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\X
|
x: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\X
|
||||||
y: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Y
|
y: CrEOF\Spatial\ORM\Query\AST\Functions\MySql\Y
|
||||||
|
|
|
||||||
|
|
@ -1,107 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity\Logging;
|
|
||||||
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints as Assert;
|
|
||||||
|
|
||||||
use DateTime;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ORM\Entity
|
|
||||||
* @ORM\Table(name="entity_log")
|
|
||||||
*/
|
|
||||||
class EntityLog
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @ORM\Id
|
|
||||||
* @ORM\Column(type="integer")
|
|
||||||
* @ORM\GeneratedValue(strategy="AUTO")
|
|
||||||
*/
|
|
||||||
protected $id;
|
|
||||||
|
|
||||||
// user that executed the action
|
|
||||||
/**
|
|
||||||
* @ORM\Column(type="string", length=80)
|
|
||||||
* @Assert\NotBlank()
|
|
||||||
*/
|
|
||||||
protected $user;
|
|
||||||
|
|
||||||
// date action took place
|
|
||||||
/**
|
|
||||||
* @ORM\Column(type="datetime")
|
|
||||||
*/
|
|
||||||
protected $date_action;
|
|
||||||
|
|
||||||
// action
|
|
||||||
/**
|
|
||||||
* @ORM\Column(type="string", length=80)
|
|
||||||
* @Assert\NotBlank()
|
|
||||||
*/
|
|
||||||
protected $action;
|
|
||||||
|
|
||||||
// changes
|
|
||||||
/**
|
|
||||||
* @ORM\Column(type="json")
|
|
||||||
*/
|
|
||||||
protected $changes;
|
|
||||||
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
$this->changes = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getID()
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getUser()
|
|
||||||
{
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setUser(string $user)
|
|
||||||
{
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDateAction()
|
|
||||||
{
|
|
||||||
return $this->date_action;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDateAction(DateTime $date_action)
|
|
||||||
{
|
|
||||||
$this->date_action = $date_action;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAction()
|
|
||||||
{
|
|
||||||
return $this->action;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setAction(string $action)
|
|
||||||
{
|
|
||||||
$this->action = $action;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getChanges($id)
|
|
||||||
{
|
|
||||||
// return null if we don't have it
|
|
||||||
if (!isset($this->changes[$id]))
|
|
||||||
return null;
|
|
||||||
|
|
||||||
return $this->changes[$id];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addChange($id, $value)
|
|
||||||
{
|
|
||||||
$this->changes[$id] = $value;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue