| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | public function load(ObjectManager $manager) |
||
| 13 | { |
||
| 14 | $neighbourhood = new Neighbourhood(); |
||
| 15 | $neighbourhood->setBoundingPolygon(new Polygon($this->getPolygonRings())); |
||
| 16 | // "Ashton" area, just hardcoded. |
||
| 17 | $neighbourhood |
||
| 18 | ->setObjectId(140) |
||
| 19 | ->setMiPrinx(140) |
||
| 20 | ->setWardcd('E05002001') |
||
| 21 | ->setPerimeterM(3812.45483398) |
||
| 22 | ->setMsoa11cd('E02003047') |
||
| 23 | ->setGeoPoint2d('[ 51.439728, -2.617112 ]') |
||
| 24 | ->setAreaM2(252697.921875) |
||
| 25 | ->setLsoa11nm('Bristol 036E') |
||
| 26 | ->setLsoa11cd('E01014700') |
||
| 27 | ->setLsoa11ln('Ashton'); |
||
| 28 | |||
| 29 | $neighbourhood->setLsoa11ln('Ashton'); |
||
| 30 | $manager->persist($neighbourhood); |
||
| 31 | $manager->flush(); |
||
| 32 | } |
||
| 774 |