Adding beforeSelect/afterSelect event handlers to HasOne relation