Closed maitrepylos closed 8 years ago
Here is a translation of the question:
Hello, in the following code, the accessor
$my_entity->get('field1');
also returns one no ?
The generic get()
method bypasses any defined accessors, so it always return the raw value, which is handy when one need to pass arguments to SQL queries. So it returns 1.
Sorry I did not read farther the documentation. Personally I find that it is confusing. I would thus limit myself to two methods for getter methods.
Thank you.
Salut, dans le code suivant, l'accesseur $my_entity->get('field1'); vaut également 2 ? non ?