[FLOW3-general] FLOW3 / MySQL
Michael Sauter
mail at michaelsauter.net
Tue Oct 12 15:46:02 CEST 2010
Hi Thomas,
you need to get rid of the notion that there needs to be a table for
every model. FLOW3 stores the information in another way. All you ever
need as a database structure is already in the DDL.sql. Basically, it
has a table in which it stores all the entities, but the properties and
their data of the entities is stored in 2 different tables. That way,
you can store every model in this structure and you can change your
model "schema" without the need to change something in the DB structure.
Have you tried and added a Book object to your BookRepository? Because
so far, what you describe sounds perfectly fine. It returns an empty
result because probably there are no books yet.
Just see the BlogExample or the Manual for an example on how to add
objects (and how they get persisted).
Or did you expect to get books back and that doesn't work?
~michael
More information about the FLOW3-general
mailing list