you should probably use the doctrine annotation lib for this ..