> Is extending built-in datatypes when creating a custom datatype a good idea? Example: Depends one the probability of big changes in the datatype in the future.
> I've used it before, but recently came across a problem - the extended datatype was not found.
1. make sure the class is in the autoload array "autoload/*" 2. if not, simply include it like you did in ezp3.x
> Depends one the probability of big changes in the datatype in the future.
Yes. I'm thinking of extending instead of creating from scratch when I only need to slightly adjust the built in functionality, for example to provide additional validation rules. URL is a good example, because it is quite a complex datatype with core functionality that I want to still rely on, I just need little extra protection. I expect this way to be much easier to maintain when changes are introduced to datatypes in future versions. Do you think I miss something?