Hi folks, I'm in the middle of learning symfony so I apologize if this
is a FAQ, but I was unable to find an answer so far. I've been unable
to get validation working on my sample app, a del.icio.us clone,
written against symfony-1.0.11 with the 1.0 branch of the
sfDoctrinePlugin.

I've got two model objects, Bookmark and Tag, with a many-to-many
relationship. When creating a bookmark, I want to ensure the url
property is not empty. To that end, I've created
apps/Malicious/modules/bookmark/validate/edit.yml:

fields:
  bookmark[url]:
    required:
      msg: The URL cannot be left blank

Unfortunately, I can still create and update bookmarks with empty
urls. I've tried a few different patterns of the name of the field
(bookmark_url, etc.) but to no avail. I'm wondering if I'm doing
something incorrectly or if perhaps the default symfony validations
are tied to the propel ORM?

Thanks for any tips.

- donald

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to