[Answered] Can skipper work with MySQL POINT data? Specifically for doctrine?

0 votes
asked Dec 1, 2015 in How To & Manuals by bas (220 points)
edited May 28, 2016 by ludek.vodicka

I have setup Doctrine such that it is capable of working with MySQL POINT and DISTANCE geometrical data types and functions.

Now I need to define fields as the POINT type, but I am not sure Skipper supports this.

Does it?

/**
 * @ORM\Column(name="geo_point", type="point", nullable=true)
 *
 * @var string $geoPoint
 */
protected $geoPoint;

1 Answer

0 votes
answered Dec 1, 2015 by ludek.vodicka Skipper developer (140,450 points)

Hi,

it's possible to extend Skipper to work with any datatype you need (as same as you can add/edit any ORM property).

Go to following help page: https://help.skipper18.com/expert-usage/customization/configuration-file-structure and find "Data types definitons" section.

You can edit existing Doctrine2 configuration files (doctrine2.skipper.cfg.xml) or you can create your own file for each project or for all your project (check following page with more info https://help.skipper18.com/expert-usage/customization/configuration-files)

To add "point" type simply add following line to datatype definitions:

<data-types>
  <data-type name="point"/>
</data-types>

and you will be able to use this datatype in skipper.

commented Dec 1, 2015 by bas (220 points)

well that's just amazing! thank you...

commented Dec 1, 2015 by ludek.vodicka Skipper developer (140,450 points)

no problem, you're welcome!

commented Dec 2, 2015 by bas (220 points)

What's the 'unified-name' attribute for?

commented Dec 2, 2015 by ludek.vodicka Skipper developer (140,450 points)

It's a way how to tell Skipper how to translate external datatypes during import. For example when importing MySQL Workbench project, DB Designer project etc. So in you case you don't have to use this attribute at all.

asked Dec 4, 2015 in Solved by bas (220 points)
recategorized May 28, 2016 by ludek.vodicka
[Closed] Does that support a label attribute?
...