I've tried using Traits for some models in Symfony 1.4. The trait file is located in lib/model/MyTrait and is as follows:
<?php
trait MyTrait {
// some code
}
And I'm using it inside a model as
<?php
class ModelPeer {
use MyTrait;
// some code
}
But they don't seem to work as I get the following error.
Fatal error: Trait 'MyTrait' not found in /lib/model/MyTrait.php