Hi,
I'm using Doctrine 2 and Zend Framework 2 to build a number of applications.

As part of that I need to add a customer data type - I've built the class 
but 
(following 
http://doctrine-orm.readthedocs.org/en/latest/cookbook/custom-mapping-types.html
 
)
but I don't really understand this bit:

"To convert the underlying database type of your new “mytype” directly into 
an instance of MyType when performing schema operations, the type has to be 
registered with the database platform as well:

<?php
$conn = $em->getConnection();
$conn->getDatabasePlatform()->registerDoctrineTypeMapping('db_mytype', 
'mytype');

Is this also part of the bootstrap?  Or where does it go if I need to be 
able to use the data type from the command line.

Thanks in advance.
Barry

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to