Inicio > Propel, symfony > Call to undefined method BasePhoto::toArray

Call to undefined method BasePhoto::toArray

Call to undefined method BasePhoto::toArray

El ORM que estoy usando es Propel y este error se generaba al intentar agregar o editar un registro, es decir al generarse una nueva instancia del form
$this->form = new UserForm();

Para resolver esto, hay que agregar las siguientes lineas en propel.ini y luego regenerar el modelo de clases
propel.addGenericAccessors = true
propel.addGenericMutators = true

Categorías:Propel, symfony
  1. Aún no hay comentarios.
  1. Aún no hay trackbacks

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.